FileDocCategorySizeDatePackage
DataStream.javaAPI DocAndroid 1.5 API1539Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

DataStream

public interface DataStream
This interface represents the ability of the classes to provide the chunks of data.

Fields Summary
Constructors Summary
Methods Summary
public byte[]getData(int length)
Retrieves the data of specified length from the stream. If the data size in the stream is less than specified length, method returns all the data contained in the stream.

return
byte array containing the demanded data.

public booleanhasData()
Checks if there is data to be read.

return
true if there is the input data in the stream, false otherwise