public interface InputStreamMap extends ListableMap<String,InputStream>
org.jclouds.aws.s3.domain.S3Bucket
. Provides additional methods for
inserting common object types.
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.Modifier and Type | Interface and Description |
---|---|
static interface |
InputStreamMap.Factory |
Modifier and Type | Method and Description |
---|---|
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) |
list
InputStream putString(String key, String value)
InputStream putFile(String key, File value)
InputStream putBytes(String key, byte[] value)
Copyright © 2009-2013 jclouds. All Rights Reserved.