Top Description Inners Fields Constructors Methods
com.sun.webkit.network.about

pack-priv final Class AboutURLConnection

extends URLConnection
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, .UnsupportedEncodingException, java.net.ProtocolException, .URL, .URLConnection

Implementation of the about: protocol handler

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private final AboutURLConnection.AboutRecord
Inherited from java.net.URLConnection:
allowUserInteractionconnecteddoInputdoOutputifModifiedSinceurluseCaches

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
connect()

Implements abstract java.net.URLConnection.connect.

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.net.URLConnection.getContentEncoding.

Returns the value of the content-encoding header field.

public int
getContentLength()

Overrides java.net.URLConnection.getContentLength.

Returns the value of the content-length header field.

public String
getContentType()

Overrides java.net.URLConnection.getContentType.

Returns the value of the content-type header field.

public InputStream
getInputStream()

Overrides java.net.URLConnection.getInputStream.

Returns an input stream that reads from this open connection.

Inherited from java.net.URLConnection:
addRequestPropertygetAllowUserInteractiongetConnectTimeoutgetContentgetContentgetContentLengthLonggetDategetDefaultAllowUserInteractiongetDefaultRequestPropertygetDefaultUseCachesgetDefaultUseCachesgetDoInputgetDoOutputgetExpirationgetFileNameMapgetHeaderFieldgetHeaderFieldgetHeaderFieldDategetHeaderFieldIntgetHeaderFieldKeygetHeaderFieldLonggetHeaderFieldsgetIfModifiedSincegetLastModifiedgetOutputStreamgetPermissiongetReadTimeoutgetRequestPropertiesgetRequestPropertygetURLgetUseCachesguessContentTypeFromNameguessContentTypeFromStreamsetAllowUserInteractionsetConnectTimeoutsetContentHandlerFactorysetDefaultAllowUserInteractionsetDefaultRequestPropertysetDefaultUseCachessetDefaultUseCachessetDoInputsetDoOutputsetFileNameMapsetIfModifiedSincesetReadTimeoutsetRequestPropertysetUseCachestoString

Field Detail

DEFAULT_CHARSETback to summary
private static final String DEFAULT_CHARSET
DEFAULT_MIMETYPEback to summary
private static final String DEFAULT_MIMETYPE
recordback to summary
private final AboutURLConnection.AboutRecord record

Constructor Detail

AboutURLConnectionback to summary
pack-priv AboutURLConnection(URL url)

Method Detail

connectback to summary
public void connect() throws IOException

Implements abstract java.net.URLConnection.connect.

Doc from java.net.URLConnection.connect.

Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.

If the connect method is called when the connection has already been opened (indicated by the connected field having the value true), the call is ignored.

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.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs while opening the connection.
getContentEncodingback to summary
public String getContentEncoding()

Overrides java.net.URLConnection.getContentEncoding.

Doc from java.net.URLConnection.getContentEncoding.

Returns the value of the content-encoding header field.

Annotations
@Override
getContentLengthback to summary
public int getContentLength()

Overrides java.net.URLConnection.getContentLength.

Doc from java.net.URLConnection.getContentLength.

Returns the value of the content-length header field.

Note

getContentLengthLong() should be preferred over this method, since it returns a long instead and is therefore more portable.

Annotations
@Override
getContentTypeback to summary
public String getContentType()

Overrides java.net.URLConnection.getContentType.

Doc from java.net.URLConnection.getContentType.

Returns the value of the content-type header field.

Annotations
@Override
getInputStreamback to summary
public InputStream getInputStream() throws IOException

Overrides java.net.URLConnection.getInputStream.

Doc from java.net.URLConnection.getInputStream.

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.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs while creating the input stream.
com.sun.webkit.network.about back to summary

private final Class AboutURLConnection.AboutRecord

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final InputStream
private final String
private final int
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentback to summary
private final InputStream content
contentEncodingback to summary
private final String contentEncoding
contentLengthback to summary
private final int contentLength
contentTypeback to summary
private final String contentType

Constructor Detail

AboutRecordback to summary
private AboutRecord(String info)