org.jclouds.blobstore.internal
Class InputStreamMapImpl

java.lang.Object
  extended by org.jclouds.blobstore.internal.BaseBlobMap<InputStream>
      extended by org.jclouds.blobstore.internal.InputStreamMapImpl
All Implemented Interfaces:
Map<String,InputStream>, InputStreamMap, ListableMap<String,InputStream>

public class InputStreamMapImpl
extends BaseBlobMap<InputStream>
implements InputStreamMap

Map representation of a live connection to a BlobStore. All put operations will result in ETag calculation. If this is not desired, use BlobMap instead.

Author:
Adrian Cole
See Also:
BlobStore, InputStreamMap, BaseBlobMap

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.blobstore.internal.BaseBlobMap
BaseBlobMap.Entry
 
Nested classes/interfaces inherited from interface org.jclouds.blobstore.InputStreamMap
InputStreamMap.Factory
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Crypto crypto
           
 
Fields inherited from class org.jclouds.blobstore.internal.BaseBlobMap
blobstore, containerName, containsValueStrategy, getAllBlobs, listStrategy, options, pathStripper, prefixer, putBlobsStrategy
 
Constructor Summary
InputStreamMapImpl(BlobStore connection, javax.inject.Provider<BlobBuilder> blobBuilders, GetBlobsInListStrategy getAllBlobs, ListContainerAndRecurseThroughFolders listStrategy, ContainsValueInListStrategy containsValueStrategy, PutBlobsStrategy putBlobsStrategy, String containerName, ListContainerOptions options, Crypto crypto)
           
 
Method Summary
 InputStream get(Object o)
           
 InputStream put(String key, InputStream value)
           
 void putAll(Map<? extends String,? extends InputStream> map)
           
 void putAllBytes(Map<? extends String,? extends byte[]> map)
           
 void putAllFiles(Map<? extends String,? extends File> map)
           
 void putAllStrings(Map<? extends String,? extends String> map)
           
 InputStream putBytes(String key, byte[] value)
           
 InputStream putFile(String key, File value)
           
 InputStream putString(String key, String value)
           
 InputStream remove(Object o)
           
 Collection<InputStream> values()
           
 
Methods inherited from class org.jclouds.blobstore.internal.BaseBlobMap
clear, containsKey, containsValue, entrySet, getAllBlobs, isEmpty, keySet, list, size, stripPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.blobstore.ListableMap
list
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size
 

Field Detail

crypto

protected final Crypto crypto
Constructor Detail

InputStreamMapImpl

@Inject
public InputStreamMapImpl(BlobStore connection,
                                 javax.inject.Provider<BlobBuilder> blobBuilders,
                                 GetBlobsInListStrategy getAllBlobs,
                                 ListContainerAndRecurseThroughFolders listStrategy,
                                 ContainsValueInListStrategy containsValueStrategy,
                                 PutBlobsStrategy putBlobsStrategy,
                                 String containerName,
                                 ListContainerOptions options,
                                 Crypto crypto)
Method Detail

get

public InputStream get(Object o)
Specified by:
get in interface Map<String,InputStream>

remove

public InputStream remove(Object o)
Specified by:
remove in interface Map<String,InputStream>

values

public Collection<InputStream> values()
Specified by:
values in interface Map<String,InputStream>

putAll

public void putAll(Map<? extends String,? extends InputStream> map)
Specified by:
putAll in interface Map<String,InputStream>

putAllBytes

public void putAllBytes(Map<? extends String,? extends byte[]> map)
Specified by:
putAllBytes in interface InputStreamMap

putAllFiles

public void putAllFiles(Map<? extends String,? extends File> map)
Specified by:
putAllFiles in interface InputStreamMap

putAllStrings

public void putAllStrings(Map<? extends String,? extends String> map)
Specified by:
putAllStrings in interface InputStreamMap

putString

public InputStream putString(String key,
                             String value)
Specified by:
putString in interface InputStreamMap

putFile

public InputStream putFile(String key,
                           File value)
Specified by:
putFile in interface InputStreamMap

putBytes

public InputStream putBytes(String key,
                            byte[] value)
Specified by:
putBytes in interface InputStreamMap

put

public InputStream put(String key,
                       InputStream value)
Specified by:
put in interface Map<String,InputStream>


Copyright © 2009-2011 jclouds. All Rights Reserved.