DCT Lightfoot v3 API specification

javax.microedition.io
Interface ContentConnection

All Superinterfaces:
Connection, InputConnection, OutputConnection, StreamConnection
All Known Subinterfaces:
HttpConnection
All Known Implementing Classes:
Connection

public interface ContentConnection
extends StreamConnection

A Content connection is a stream connection that passes content


Method Summary
 java.lang.String getEncoding()
          Get the encoding of the content
 long getLength()
          Get the length of the content being provided
 java.lang.String getType()
          Get the type of content in the stream
 
Methods inherited from interface javax.microedition.io.InputConnection
openDataInputStream, openInputStream
 
Methods inherited from interface javax.microedition.io.Connection
close
 
Methods inherited from interface javax.microedition.io.OutputConnection
openDataOutputStream, openOutputStream
 

Method Detail

getType

public java.lang.String getType()
Get the type of content in the stream

Returns:
the type

getEncoding

public java.lang.String getEncoding()
Get the encoding of the content

Returns:
the content

getLength

public long getLength()
Get the length of the content being provided

Returns:
the length or -1 if the content is not found

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification