THE PACKAGE JAVA.IO
java.io.ByteArrayInputStream
22.6
22.6 The Class
java.io.ByteArrayInputStream
A
ByteArrayInputStream
 contains an internal buffer that contains bytes that
may be read from the stream. An internal counter keeps track of the next byte to
be supplied by the
read
 method. See also
StringBufferInputStream
 ( 22.7).
public class ByteArrayInputStream extends InputStream {
protected byte[] buf;
protected int pos;
protected int count;
public ByteArrayInputStream(byte[] buf);
public ByteArrayInputStream(byte[] buf,
int offset, int length);
public int read()
throws NullPointerException, IndexOutOfBoundsException;
public int read(byte[] b, int off, int len)
throws NullPointerException, IndexOutOfBoundsException;
public long skip(long n);
public int available();
public void reset();
}
22.6.1
protected byte[] buf;
An array of bytes that was provided by the creator of the stream. Elements
buf[0]
through
buf[count 1]
 are the only bytes that can ever be read from the stream;
element
buf[pos]
 is the next byte to be read.
22.6.2
protected int pos;
This value should always be nonnegative and not larger than the value of
count
.
The next byte to be read from this stream will be
buf[pos]
.
22.6.3
protected int count;
This value should always be nonnegative and not larger than the length of
buf
. It
is one greater than the position of the last byte within
buf
 that can ever be read
from this stream.
689






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved