public final class ParseOps extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getEndObjPos(InputByteStream mBuf)
Gets the position of endobj keyword in this stream.
|
static byte[] |
readHex(InputByteStream buf)
Parses a hexidecimal character string into a byte array.
|
static byte[] |
readLiteral(InputByteStream inBuf)
This API reads the literals and returns as byte array.
|
static ASName |
readName(InputByteStream buf)
Parses an atom from the PDF byte stream.
|
static ASNumber |
readNumber(byte first,
InputByteStream buf)
Parses a numerical value from the PDF byte stream.
|
static void |
skipHex(InputByteStream buf)
Skips a hexidecimal character string.
|
static void |
skipLiteral(InputByteStream inBuf)
This API skips all the literals in the stream passed.
|
static void |
skipName(InputByteStream buf)
Skips an atom from the PDF byte stream.
|
static void |
skipNumber(byte first,
InputByteStream buf)
Skips over a numerical value from the PDF byte stream.
|
static byte |
skipWhitespace(InputByteStream buf)
Skips over whitespace in the input stream.
|
public static byte[] readHex(InputByteStream buf) throws IOException, PDFParseException
buf - Buffer to parseIOExceptionPDFParseException - If there is a syntax error.public static void skipHex(InputByteStream buf) throws IOException, PDFParseException
buf - Buffer to parseIOExceptionPDFParseException - If there is a syntax error.public static void skipLiteral(InputByteStream inBuf) throws IOException
IOExceptionpublic static byte[] readLiteral(InputByteStream inBuf) throws IOException, PDFParseException
PDFParseExceptionIOExceptionpublic static ASName readName(InputByteStream buf) throws IOException, PDFParseException
buf - PDF data buffer to parseIOExceptionPDFParseExceptionpublic static void skipName(InputByteStream buf) throws IOException, PDFParseException
buf - PDF data buffer to parseIOExceptionPDFParseExceptionpublic static ASNumber readNumber(byte first, InputByteStream buf) throws PDFParseException, IOException
buf - Byte stream to parsefirst - Starting byte to parseIOExceptionPDFParseExceptionpublic static void skipNumber(byte first,
InputByteStream buf)
throws PDFParseException,
IOException
buf - Byte stream to parsefirst - Starting byte to parseIOExceptionPDFParseExceptionpublic static byte skipWhitespace(InputByteStream buf) throws IOException
buf - Buffer to parseIOExceptionpublic static long getEndObjPos(InputByteStream mBuf) throws IOException
mBuf - IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved