java.io.ByteArrayInputStream (JDK 1.0)
This class is a subclass of InputStream in which input data come from a specified array of byte values. This is useful when you want to read data in memory as if it were coming from a file or pipe or socket. Note that the specified array of bytes is not copied when a ByteArrayInputStream is created. See also CharArrayReader.
public classByteArrayInputStreamextends InputStream { //Public ConstructorspublicByteArrayInputStream(byte[]buf); publicByteArrayInputStream(byte[]buf, intoffset, intlength); //Protected Instance Variablesprotected byte[]buf; protected intcount; 1.1 protected intmark; protected intpos; //Public Instance Methodspublic synchronized intavailable(); //Overrides InputStream1.1 public voidmark(intmarkpos); //Overrides InputStream1.1 public booleanmarkSupported(); //Overrides InputStreampublic synchronized intread(); //Defines InputStreampublic synchronized intread(byte[]b, intoff, intlen); //Overrides InputStreampublic synchronized voidreset(); //Overrides InputStreampublic synchronized longskip(longn); //Overrides InputStream}
Hierarchy:
Object->InputStream->ByteArrayInputStream