org.jclouds.blobstore
Interface InputStreamMap

All Superinterfaces:
ListableMap<String,InputStream>, Map<String,InputStream>
All Known Implementing Classes:
InputStreamMapImpl

public interface InputStreamMap
extends ListableMap<String,InputStream>

Map view of an org.jclouds.aws.s3.domain.S3Bucket. Provides additional methods for inserting common object types.

Note

All put operations will invoke org.jclouds.aws.s3.domain.S3Object#generateETag. By extension, Map.put(Object, Object) will result in the InputStream being converted to a byte array. For this reason, do not use Map.put(Object, Object) to store files. Use putFile(String, File) or S3ObjectMap instead.

Author:
Adrian Cole

Nested Class Summary
static interface InputStreamMap.Factory
           
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 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)
           
 
Methods inherited from interface org.jclouds.blobstore.ListableMap
list
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

putString

InputStream putString(String key,
                      String value)

putFile

InputStream putFile(String key,
                    File value)

putBytes

InputStream putBytes(String key,
                     byte[] value)

putAllStrings

void putAllStrings(Map<? extends String,? extends String> map)

putAllBytes

void putAllBytes(Map<? extends String,? extends byte[]> map)

putAllFiles

void putAllFiles(Map<? extends String,? extends File> map)


Copyright © 2009-2011 jclouds. All Rights Reserved.