| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private final AboutURLConnection. |
| 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. |
| public String | getContentEncoding()
Overrides java. Returns the value of the |
| public int | getContentLength()
Overrides java. Returns the value of the |
| public String | getContentType()
Overrides java. Returns the value of the |
| public InputStream | getInputStream()
Overrides java. Returns an input stream that reads from this open connection. |
| DEFAULT_CHARSET | back to summary |
|---|---|
| private static final String DEFAULT_CHARSET | |
| DEFAULT_MIMETYPE | back to summary |
|---|---|
| private static final String DEFAULT_MIMETYPE | |
| record | back to summary |
|---|---|
| private final AboutURLConnection. | |
| AboutURLConnection | back to summary |
|---|---|
| pack-priv AboutURLConnection(URL url) | |
| 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.
| |
| getContentEncoding | back to summary |
|---|---|
| public String getContentEncoding() Overrides java. Doc from java. Returns the value of the
| |
| 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() 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InputStream | |
| private final String | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| content | back to summary |
|---|---|
| private final InputStream content | |
| contentEncoding | back to summary |
|---|---|
| private final String contentEncoding | |
| contentLength | back to summary |
|---|---|
| private final int contentLength | |
| contentType | back to summary |
|---|---|
| private final String contentType | |
| AboutRecord | back to summary |
|---|---|
| private AboutRecord(String info) | |