org.mozilla.pluglet.mozilla
Interface PlugletStreamInfo


public interface PlugletStreamInfo

This interface returns various information about the stream such as the MIME type and whether the stream is seekable.


Method Summary
 java.lang.String getContentType()
          Returns the MIME type for a particular stream.
 int getLastModified()
          Returns the time the data in the URL was last modified, measured in seconds since 12:00 midnight, GMT, January 1, 1970.
 int getLength()
          Returns the length of a stream in bytes.
 java.lang.String getURL()
          Specifies the URL that was used to originally request the stream.
 boolean isSeekable()
          Indicates if a stream is seekable; that is, if it is possible to move to a particular point in the stream.
 void requestRead(ByteRanges ranges)
          Requests reading from the input stream.
 

Method Detail

getContentType

public java.lang.String getContentType()
Returns the MIME type for a particular stream.

Returns:
As stated above, returns the MIME type.

isSeekable

public boolean isSeekable()
Indicates if a stream is seekable; that is, if it is possible to move to a particular point in the stream.

Returns:
Returns true if the stream is seekable.

getLength

public int getLength()
Returns the length of a stream in bytes.

getLastModified

public int getLastModified()
Returns the time the data in the URL was last modified, measured in seconds since 12:00 midnight, GMT, January 1, 1970.

Returns:
Returns an integer value for the time since last modification, as described above.

getURL

public java.lang.String getURL()
Specifies the URL that was used to originally request the stream.

Returns:
Returns a String for the URL as described above.

requestRead

public void requestRead(ByteRanges ranges)
Requests reading from the input stream.