| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private static final ImageReader | |
| private ImageReader. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect()
Implements abstract java. Opens a communications link to the resource referenced by this URL, if such a connection has not already been established. |
| private synchronized ImageReader. | connectResourceNode()
Finds and caches the resource node associated with this URL and marks the connection as "connected". |
| public int | getContentLength()
Overrides sun. Call this routine to get the content-length associated with this object. |
| public long | getContentLengthLong()
Overrides java. Returns the value of the |
| public InputStream | getInputStream()
Overrides java. Returns an input stream that reads from this open connection. |
| private static String |
| module | back to summary |
|---|---|
| private final String module | |
| path | back to summary |
|---|---|
| private final String path | |
| READER | back to summary |
|---|---|
| private static final ImageReader READER | |
| resourceNode | back to summary |
|---|---|
| private ImageReader. | |
| JavaRuntimeURLConnection | back to summary |
|---|---|
| pack-priv JavaRuntimeURLConnection(URL url) throws IOException | |
| connect | back to summary |
|---|---|
| public void connect() throws IOException 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.
| |
| connectResourceNode | back to summary |
|---|---|
| private synchronized ImageReader. Finds and caches the resource node associated with this URL and marks the connection as "connected". | |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Overrides sun. Doc from sun. Call this routine to get the content-length associated with this object.
| |
| getContentLengthLong | back to summary |
|---|---|
| public long getContentLengthLong() Overrides java. Doc from java. Returns the value of the
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException 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.
| |
| percentDecode | back to summary |
|---|---|
| private static String percentDecode(String path) throws MalformedURLException | |