ContentConnectionpublic interface ContentConnection implements StreamConnectionThis interface defines the stream connection over which
content is passed. |
Methods Summary |
---|
public java.lang.String | getEncoding()Returns a string describing the encoding of the content which
the resource connected to is providing.
E.g. if the connection is via HTTP, the value of the
content-encoding header field is returned.
| public long | getLength()Returns the length of the content which is being provided.
E.g. if the connection is via HTTP, then the value of the
content-length header field is returned.
| public java.lang.String | getType()Returns the type of content that the resource connected to is
providing. For instance, if the connection is via HTTP, then
the value of the content-type header field is returned.
|
|