January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.io.ByteArrayInputStream
This class is identical to its J2SE
counterpart. It is a subclass of InputStream,
which reads data in as a series of bytes.
public classByteArrayInputStreamextends java.io.InputStream { // protected fields protected byte[]buf;protected intcount;protected intmark;protected intpos;// constructors publicByteArrayInputStream(byte[] buf); publicByteArrayInputStream(byte[] buf, int offset, int length); // public instance methods public synchronized intavailable(); public synchronized voidclose() throws java.io.IOException; public voidmark(int readAheadLimit); public booleanmarkSupported(); public synchronized intread(); public synchronized intread(byte[] b, int off, int len); public synchronized voidreset(); public synchronized longskip(long n); }
Read now
Unlock full access