| javax.microedition.io.ContentConnection
ContentConnection | public interface ContentConnection extends StreamConnection(Code) | | This interface defines the stream connection over which
content is passed.
version: 12/17/01 (CLDC 1.1) since: CLDC 1.0 |
Method Summary | |
public String | getEncoding() Returns a string describing the encoding of the content which
the resource connected to is providing.
E.g. | public long | getLength() Returns the length of the content which is being provided.
E.g. | public String | getType() Returns the type of content that the resource connected to is
providing. |
getEncoding | public String getEncoding()(Code) | | 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.
the content encoding of the resource that the URLreferences, or null if not known. |
getLength | public long getLength()(Code) | | 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.
the content length of the resource that this connection'sURL references, or -1 if the content lengthis not known. |
getType | public String getType()(Code) | | 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.
the content type of the resource that the URL references,or null if not known. |
|
|