us.ihmc.utilities.io
Class ResettableByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
us.ihmc.utilities.io.ResettableByteArrayInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class ResettableByteArrayInputStream
- extends java.io.ByteArrayInputStream
Methods inherited from class java.io.ByteArrayInputStream |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResettableByteArrayInputStream
public ResettableByteArrayInputStream()
ResettableByteArrayInputStream
public ResettableByteArrayInputStream(byte[] buffer,
int length)
ResettableByteArrayInputStream
public ResettableByteArrayInputStream(byte[] buffer,
int offset,
int length)
getBytes
public byte[] getBytes()
getCount
public int getCount()
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.ByteArrayInputStream
- Throws:
java.io.IOException
setBuffer
public void setBuffer(byte[] buffer,
int length)