|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.ByteArrayInputStream | +--org.jumpi.impl.transformer.serialization.FastByteArrayInputStream
An extension of ByteArrayInputStream to allow direct manipulation of and access to the internal buffer for performance reasons.
Field Summary |
Fields inherited from class java.io.ByteArrayInputStream |
buf, count, mark, pos |
Constructor Summary | |
FastByteArrayInputStream(byte[] buf)
Creates a new FastByteArrayInputStream object. |
|
FastByteArrayInputStream(int size)
Creates a new FastByteArrayInputStream object. |
Method Summary | |
void |
clear()
Clear the internal buffer. |
byte[] |
getInternalBuffer()
Return the internal buffer without copy. |
void |
setInternalBuffer(byte[] replacement)
Set the internal buffer. |
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, toString, wait, wait, wait |
Constructor Detail |
public FastByteArrayInputStream(int size)
size
- the initial size of the internal buffer.public FastByteArrayInputStream(byte[] buf)
buf
- the buffer to use as the internal buffer.Method Detail |
public byte[] getInternalBuffer()
setInternalBuffer(byte[])
public void setInternalBuffer(byte[] replacement)
replacement
- the new internal buffer.getInternalBuffer()
public void clear()
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |