FileDocCategorySizeDatePackage
ContentConnection.javaAPI DocJ2ME CLDC 1.11663Wed Feb 05 15:56:00 GMT 2003javax.microedition.io

ContentConnection

public interface ContentConnection implements StreamConnection
This interface defines the stream connection over which content is passed.
author
Nik Shaylor
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.