public class S3URLConnection extends URLConnection
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected org.jets3t.service.model.S3Object |
object |
protected String |
secret |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
S3URLConnection(URL url)
Contruct a new S3URLConnection.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect to S3 and get the object reference, but don't read any of
the object data yet.
|
String |
getContentType()
XXX Not sure what this should be or if it even matters for our use.
|
InputStream |
getInputStream()
Get an InputStream for the object, connecting to S3 if connect()
hasn't been called yet.
|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
protected String id
protected String secret
protected org.jets3t.service.model.S3Object object
public S3URLConnection(URL url)
a
- URL of the form s3://id:secret@bucket/keypublic void connect() throws IOException
connect
in class URLConnection
IOException
public String getContentType()
getContentType
in class URLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
Copyright © 2003-2014 Internet Archive. All Rights Reserved.