public class S3 extends Object
| Constructor and Description |
|---|
S3() |
S3(String bucket,
String key) |
S3(String bucket,
String key,
long length,
String name,
String mimeType,
Map<String,String> metadata) |
public S3()
public S3(String bucket, String key) throws IOException
IOExceptionpublic static S3 from(InputStream stream, ServiceLocator locator) throws IOException
IOExceptionpublic static S3 from(InputStream stream, long length, ServiceLocator locator) throws IOException
IOExceptionpublic static S3 from(byte[] bytes, ServiceLocator locator) throws IOException
IOExceptionpublic String getBucket()
public String getKey()
public String getURI()
public long getLength()
public String getName()
public String getMimeType()
public byte[] getContent(ServiceLocator locator) throws IOException
IOExceptionpublic InputStream getStream(ServiceLocator locator) throws IOException
IOExceptionpublic byte[] getBytes(ServiceLocator locator) throws IOException
IOExceptionpublic String upload(ByteArrayInputStream stream, ServiceLocator locator) throws IOException
IOExceptionpublic String upload(InputStream stream, long length, ServiceLocator locator) throws IOException
IOExceptionpublic String upload(String bucket, InputStream stream, long length, ServiceLocator locator) throws IOException
IOExceptionpublic String upload(byte[] bytes, ServiceLocator locator) throws IOException
IOExceptionpublic String upload(String bucket, byte[] bytes, ServiceLocator locator) throws IOException
IOExceptionpublic void delete(ServiceLocator locator) throws IOException
IOExceptionCopyright © 2025. All rights reserved.