| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final Log | LOG
Log instance.
|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | Returns: true if the next char is a space or a returnChecks if the next char is a space or a return. |
| private boolean | Returns: true if next bytes are probably printable ASCII
characters starting with a PDF operator, otherwise falseLooks up an amount of bytes if they contain only ASCII characters (no control sequences etc.), and that these ASCII characters begin with a sequence of 1-3 non-blank characters between blanks |
| private boolean | |
| public List | |
| public Object | Returns: The next token in the stream or null if there are no more tokens in the stream.This will parse the next token in the stream. |
| private String | Returns: The operator that was read from the stream.This will read an operator from the stream. |
| binCharTestArr | back to summary |
|---|---|
| private final byte[] binCharTestArr | |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. Log instance. | |
| MAX_BIN_CHAR_TEST_LENGTH | back to summary |
|---|---|
| private static final int MAX_BIN_CHAR_TEST_LENGTH | |
| PDFStreamParser | back to summary |
|---|---|
| public PDFStreamParser(PDContentStream pdContentstream) throws IOException Constructor.
| |
| PDFStreamParser | back to summary |
|---|---|
| public PDFStreamParser(byte[] bytes) Constructor.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Close the underlying resource.
| |
| hasNextSpaceOrReturn | back to summary |
|---|---|
| private boolean hasNextSpaceOrReturn() throws IOException Checks if the next char is a space or a return.
| |
| hasNoFollowingBinData | back to summary |
|---|---|
| private boolean hasNoFollowingBinData() throws IOException Looks up an amount of bytes if they contain only ASCII characters (no control sequences etc.), and that these ASCII characters begin with a sequence of 1-3 non-blank characters between blanks
| |
| isSpaceOrReturn | back to summary |
|---|---|
| private boolean isSpaceOrReturn(int c) | |
| parse | back to summary |
|---|---|
| public List This will parse all the tokens in the stream. This will close the stream when it is finished parsing.
| |
| parseNextToken | back to summary |
|---|---|
| public Object parseNextToken() throws IOException This will parse the next token in the stream.
| |
| readOperator | back to summary |
|---|---|
| private String readOperator() throws IOException This will read an operator from the stream.
| |