|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
org.openbp.common.net.ByteArrayURLConnection
public class ByteArrayURLConnection
To be used for URLs that refer to byte arrays in memory.
| Field Summary |
|---|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
ByteArrayURLConnection(java.net.URL url,
byte[] bytes)
Constructor. |
|
| Method Summary | |
|---|---|
void |
connect()
|
java.lang.Object |
getContent()
|
int |
getContentLength()
|
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
toString()
|
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayURLConnection(java.net.URL url,
byte[] bytes)
url - Urlbytes - Byte array| Method Detail |
|---|
public void connect()
connect in class java.net.URLConnectionpublic int getContentLength()
getContentLength in class java.net.URLConnectionpublic java.lang.String getContentType()
getContentType in class java.net.URLConnection
public java.lang.Object getContent()
throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.net.URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||