FileDocCategorySizeDatePackage
ContentConnection.javaAPI DocphoneME MR2 API (J2ME)2547Wed May 02 17:59:56 BST 2007javax.microedition.io

ContentConnection

public interface ContentConnection implements StreamConnection
This interface defines the stream connection over which content is passed.
version
12/17/01 (CLDC 1.1)
since
CLDC 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetEncoding()
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.

return
the content encoding of the resource that the URL references, or null if not known.

public longgetLength()
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.

return
the content length of the resource that this connection's URL references, or -1 if the content length is not known.

public java.lang.StringgetType()
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.

return
the content type of the resource that the URL references, or null if not known.