Byte arrayinputstream

207 views

Published on

Published in: Education, Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
207
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Byte arrayinputstream

  1. 1. Class ByteArrayInputStream Class ByteArrayInputStream
  2. 2. • 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. Class ByteArrayInputStream
  3. 3. Constructor • ByteArrayInputStream(byte[] buf) • Creates a ByteArrayInputStream so that it uses buf as its buffer array. • The buffer array is not copied. The initial value of pos is 0 and the initial value of count is the length of buf. Class ByteArrayInputStream
  4. 4. close() • Void close() Closes this input stream and releases any system resources associated with the stream. • public void close() throws IOException Class ByteArrayInputStream
  5. 5. Reset() • public void reset() • Resets the buffer to the marked position. The marked position is the beginning unless another position was marked. The value of pos is set to 0. Class ByteArrayInputStream

×