org.cip4.jdflib.util
Class ByteArrayIOStream.ByteArrayIOInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by org.cip4.jdflib.util.ByteArrayIOStream.ByteArrayIOInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
ByteArrayIOStream

public static class ByteArrayIOStream.ByteArrayIOInputStream
extends ByteArrayInputStream

bytearrayinputstream that allows duplication without copying

Author:
rainer prosi

Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Method Summary
 byte[] getBuf()
           
 int getCount()
           
 ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
          get a new input stream that starts fresh at 0
 String toString()
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNewStream

public ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
get a new input stream that starts fresh at 0

Returns:

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getBuf

public byte[] getBuf()
Returns:

getCount

public int getCount()
Returns:


Copyright © 2013. All Rights Reserved.