|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.ByteArrayInputStream
org.apache.xindice.util.ByteArrayInput
public final class ByteArrayInput
ByteArrayInput is a wrapper around ByteArrayInputStream that allows one access to the underlying array and position pointer.
Field Summary |
---|
Fields inherited from class java.io.ByteArrayInputStream |
---|
buf, count, mark, pos |
Constructor Summary | |
---|---|
ByteArrayInput(byte[] buf)
|
|
ByteArrayInput(byte[] buf,
int pos,
int length)
|
Method Summary | |
---|---|
byte[] |
getArray()
getArray returns the Byte Array. |
InputStream |
getInputStream()
getInputStream returns a newly created ByteArrayInput based on this instance's data and current position. |
int |
getPos()
getPos returns the current read position in the array. |
void |
setPos(int pos)
setPos sets the current read position in the array. |
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 ByteArrayInput(byte[] buf)
public ByteArrayInput(byte[] buf, int pos, int length)
Method Detail |
---|
public int getPos()
public void setPos(int pos) throws IOException
pos
- The Array Position
IOException
- if the position is out of rangepublic byte[] getArray()
public InputStream getInputStream()
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |