public class BytesURLConnection extends URLConnection
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content |
protected int |
length |
protected int |
offset |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
BytesURLConnection(URL url,
byte[] content) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
InputStream |
getInputStream() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, 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, toStringprotected byte[] content
protected int offset
protected int length
public BytesURLConnection(URL url, byte[] content)
public void connect()
connect in class URLConnectionpublic InputStream getInputStream()
getInputStream in class URLConnectionCopyright © 2002-2013 Codehaus. All Rights Reserved.