| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final boolean | |
| private final URLConnection | |
| private InputStream | |
| private static final Pattern | |
| private static final String[] | |
| private static final int[][] | |
| private static final Pattern[] | |
| private static final String | |
| private final boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| 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 String | getHeaderField(String
the name of a header field. key)Overrides java. Returns the value of the named header field. |
| public Map | getHeaderFields()
Overrides java. Returns an unmodifiable Map of the header fields. |
| public InputStream | getInputStream()
Overrides java. Returns an input stream that reads from this open connection. |
| dirUrl | back to summary |
|---|---|
| private String dirUrl | |
| ftp | back to summary |
|---|---|
| private final boolean ftp | |
| inner | back to summary |
|---|---|
| private final URLConnection inner | |
| ins | back to summary |
|---|---|
| private InputStream ins | |
| linkp | back to summary |
|---|---|
| private static final Pattern linkp | |
| patStrings | back to summary |
|---|---|
| private static final String[] patStrings | |
| patternGroups | back to summary |
|---|---|
| private static final int[][] patternGroups | |
| patterns | back to summary |
|---|---|
| private static final Pattern[] patterns | |
| styleSheet | back to summary |
|---|---|
| private static final String styleSheet | |
| sure | back to summary |
|---|---|
| private final boolean sure | |
| toHTML | back to summary |
|---|---|
| private boolean toHTML | |
| DirectoryURLConnection | back to summary |
|---|---|
| pack-priv DirectoryURLConnection(URLConnection con, boolean notsure) | |
| DirectoryURLConnection | back to summary |
|---|---|
| pack-priv DirectoryURLConnection(URLConnection con) | |
| 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 | |
| getHeaderField | back to summary |
|---|---|
| public String getHeaderField(String key) Overrides java. Doc from java. Returns the value of the named header field. If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned. | |
| getHeaderFields | back to summary |
|---|---|
| public Map Overrides java. Doc from java. Returns an unmodifiable Map of the header fields.
The Map keys are Strings that represent the
response-header field names. Each Map value is an
unmodifiable List of Strings that represents
the corresponding field values.
This method is overridden by the subclasses of | |
| 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 byte[] | |
| private ByteArrayInputStream | |
| private ByteArrayOutputStream | |
| private boolean | |
| private int | |
| private PrintStream | |
| private final StringBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| public int | read(byte[]
the buffer into which the data is read. buf)Overrides java. Reads up to |
| public int | read(byte[]
the buffer into which the data is read. buf, int the start offset in the destination array offset, int bthe maximum number of bytes read. length)Overrides java. Reads up to |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| bytesIn | back to summary |
|---|---|
| private ByteArrayInputStream bytesIn | |
| bytesOut | back to summary |
|---|---|
| private ByteArrayOutputStream bytesOut | |
| endOfStream | back to summary |
|---|---|
| private boolean endOfStream | |
| lineCount | back to summary |
|---|---|
| private int lineCount | |
| out | back to summary |
|---|---|
| private PrintStream out | |
| tmpString | back to summary |
|---|---|
| private final StringBuffer tmpString | |
| DirectoryInputStream | back to summary |
|---|---|
| private DirectoryInputStream(InputStream ins, boolean guess) | |
| endOfList | back to summary |
|---|---|
| private void endOfList() | |
| parseFile | back to summary |
|---|---|
| private void parseFile(String s) | |
| parseFTP | back to summary |
|---|---|
| private void parseFTP(String s) | |
| read | back to summary |
|---|---|
| public int read(byte[] buf) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int offset, int length) throws IOException Overrides java. Doc from java. Reads up to
| |