Name
java.io.ByteArrayInputStream
Synopsis
This class is identical to its J2SE
counterpart. It is a subclass of InputStream
,
which reads data in as a series of bytes.
public classByteArrayInputStream
extends 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); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.