|
Xindice API version 1.1b4 |
|||||||||
| 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
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 count)
|
|
| Method Summary | |
byte[] |
getArray()
getArray returns the Byte Array. |
java.io.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 count)
| Method Detail |
public int getPos()
public void setPos(int pos)
throws java.io.IOException
pos - The Array Position
java.io.IOException - if the position is out of rangepublic byte[] getArray()
public java.io.InputStream getInputStream()
|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||