|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.crionics.jpdf.ArrayByteReader
public class ArrayByteReader
This class is used to parse the document from a memory byte array
| Constructor Summary | |
|---|---|
ArrayByteReader(byte[] theBuffer)
Creates a new ArrayByteReader object. |
|
ArrayByteReader(java.io.InputStream is)
Creates a new ArrayByteReader object from an inputstream. |
|
| Method Summary | |
|---|---|
void |
append(java.util.ArrayList theBuffer)
Appends the array at the end of the bytereader. |
void |
close()
Closes the document. |
java.lang.String |
getID()
Returns a human readable description of this byte reader (for instance a path for a file,...). |
java.io.InputStream |
getInputStream()
Returns an InputStream on the document. |
int |
length()
Returns the size of the document in bytes. |
void |
open()
Opens the document. |
int |
readUnsignedByte()
Returns an unsigned byte from the document. |
void |
readUnsignedBytes(byte[] theBuffer,
int len)
Reads unsigned bytes from document and stores them in a buffer. |
void |
seek(int pos)
Sets the cursor position of the specified offset. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayByteReader(byte[] theBuffer)
theBuffer - The buffer in memory containing the PDF document.
public ArrayByteReader(java.io.InputStream is)
throws java.io.IOException
is - The input stream.
java.io.IOException - io problem| Method Detail |
|---|
public void append(java.util.ArrayList theBuffer)
ByteReader
append in interface ByteReadertheBuffer - bytes to append.ByteReader.append(ArrayList)public void close()
ByteReader
close in interface ByteReaderByteReader.close()public java.lang.String getID()
ByteReader
getID in interface ByteReaderByteReader.getID()public java.io.InputStream getInputStream()
ByteReader
getInputStream in interface ByteReaderByteReader.getInputStream()public int length()
ByteReader
length in interface ByteReaderByteReader.length()public void open()
ByteReader
open in interface ByteReaderByteReader.open()public int readUnsignedByte()
ByteReader
readUnsignedByte in interface ByteReaderByteReader.readUnsignedByte()
public void readUnsignedBytes(byte[] theBuffer,
int len)
ByteReader
readUnsignedBytes in interface ByteReadertheBuffer - The byte buffer where the data will be stored.len - The number of bytes to read from the document.ByteReader.readUnsignedBytes(byte[], int)
public void seek(int pos)
throws java.io.IOException
ByteReader
seek in interface ByteReaderpos - offset in bytes.
java.io.IOException - io problem.ByteReader.seek(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||