public final class DataURLConnection extends URLConnection
Modifier and Type | Field and Description |
---|---|
byte[] |
bytes |
String |
contentType |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
DataURLConnection(URL url,
byte[] bytes,
String contentType) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
String |
getHeaderField(int n) |
String |
getHeaderField(String name) |
String |
getHeaderFieldKey(int n) |
Map<String,List<String>> |
getHeaderFields() |
InputStream |
getInputStream() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldLong, 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
public final byte[] bytes
public final String contentType
public void connect()
connect
in class URLConnection
public InputStream getInputStream()
getInputStream
in class URLConnection
public Map<String,List<String>> getHeaderFields()
getHeaderFields
in class URLConnection
public String getHeaderField(String name)
getHeaderField
in class URLConnection
public String getHeaderFieldKey(int n)
getHeaderFieldKey
in class URLConnection
public String getHeaderField(int n)
getHeaderField
in class URLConnection