| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final DataURLStreamHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static DataURLStreamHandler | |
| protected URLConnection | openConnection(final URL
the URL that this connects to. url)Implements abstract java. URL argument.
|
| INSTANCE | back to summary |
|---|---|
| private static final DataURLStreamHandler INSTANCE | |
| DataURLStreamHandler | back to summary |
|---|---|
| private DataURLStreamHandler() | |
| getInstance | back to summary |
|---|---|
| pack-priv static DataURLStreamHandler getInstance() | |
| openConnection | back to summary |
|---|---|
| protected URLConnection openConnection(final URL url) throws IOException Implements abstract java. Doc from java. Opens a connection to the object referenced by the
If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final String | |
| private final String | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect()
Implements abstract java. |
| public Object | getContent()
Overrides java. |
| public int | getContentLength()
Overrides java. content-length header field.
|
| public String | getContentType()
Overrides java. content-type header field.
|
| public InputStream | getInputStream()
Overrides java. |
| private static ProtocolException | |
| private static boolean |
| content | back to summary |
|---|---|
| private final byte[] content | |
| contentString | back to summary |
|---|---|
| private final String contentString | |
| contentType | back to summary |
|---|---|
| private final String contentType | |
| ST_INITIAL | back to summary |
|---|---|
| private static final int ST_INITIAL | |
| ST_PARAMETER | back to summary |
|---|---|
| private static final int ST_PARAMETER | |
| ST_PARAMETER_VAL | back to summary |
|---|---|
| private static final int ST_PARAMETER_VAL | |
| ST_SUBTYPE | back to summary |
|---|---|
| private static final int ST_SUBTYPE | |
| ST_TYPE | back to summary |
|---|---|
| private static final int ST_TYPE | |
| DataURLConnection | back to summary |
|---|---|
| pack-priv DataURLConnection(final URL url) throws IOException | |
| connect | back to summary |
|---|---|
| public void connect() Implements abstract java. Doc from java. Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.
If the URLConnection objects go through two phases: first they are created, then they are connected. After being created, and before being connected, various options can be specified (e.g., doInput and UseCaches). After connecting, it is an error to try to set them. Operations that depend on being connected, like getContentLength, will implicitly perform the connection, if necessary. | |
| getContent | back to summary |
|---|---|
| public Object getContent() Overrides java. Doc from java. Retrieves the contents of this URL connection.
This method first determines the content type of the object by
calling the This is done as follows:
| |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Overrides java. Doc from java. Returns the value of the Note
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Overrides java. Doc from java. Returns the value of the
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Overrides java. Doc from java. Returns an input stream that reads from this open connection. A SocketTimeoutException can be thrown when reading from the returned input stream if the read timeout expires before data is available for read.
| |
| invalidChar | back to summary |
|---|---|
| private static ProtocolException invalidChar(int pos) | |
| isCTToken | back to summary |
|---|---|
| private static boolean isCTToken(int cp) | |