public class PRTokeniser extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean[] |
delims |
protected RandomAccessFileOrArray |
file |
protected int |
generation |
protected boolean |
hexString |
protected int |
reference |
protected String |
stringValue |
static int |
TK_COMMENT |
static int |
TK_END_ARRAY |
static int |
TK_END_DIC |
static int |
TK_ENDOFFILE |
static int |
TK_NAME |
static int |
TK_NUMBER |
static int |
TK_OTHER |
static int |
TK_REF |
static int |
TK_START_ARRAY |
static int |
TK_START_DIC |
static int |
TK_STRING |
protected int |
type |
| Constructor and Description |
|---|
PRTokeniser(byte[] pdfIn) |
PRTokeniser(RandomAccessFileOrArray file) |
PRTokeniser(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
backOnePosition(int ch) |
void |
checkFdfHeader() |
static int[] |
checkObjectStart(byte[] line) |
char |
checkPdfHeader() |
void |
close() |
RandomAccessFileOrArray |
getFile() |
int |
getFilePointer() |
int |
getGeneration() |
static int |
getHex(int v) |
int |
getReference() |
RandomAccessFileOrArray |
getSafeFile() |
int |
getStartxref() |
String |
getStringValue() |
int |
getTokenType() |
int |
intValue() |
static boolean |
isDelimiter(int ch) |
static boolean |
isDelimiterWhitespace(int ch) |
boolean |
isHexString() |
static boolean |
isWhitespace(int ch) |
int |
length() |
boolean |
nextToken() |
void |
nextValidToken() |
int |
read() |
boolean |
readLineSegment(byte[] input) |
String |
readString(int size) |
void |
seek(int pos) |
void |
throwError(String error) |
public static final int TK_NUMBER
public static final int TK_STRING
public static final int TK_NAME
public static final int TK_COMMENT
public static final int TK_START_ARRAY
public static final int TK_END_ARRAY
public static final int TK_START_DIC
public static final int TK_END_DIC
public static final int TK_REF
public static final int TK_OTHER
public static final int TK_ENDOFFILE
public static final boolean[] delims
protected RandomAccessFileOrArray file
protected int type
protected String stringValue
protected int reference
protected int generation
protected boolean hexString
public PRTokeniser(String filename) throws IOException
IOExceptionpublic PRTokeniser(byte[] pdfIn)
public PRTokeniser(RandomAccessFileOrArray file)
public void seek(int pos)
throws IOException
IOExceptionpublic int getFilePointer()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic int length()
throws IOException
IOExceptionpublic int read()
throws IOException
IOExceptionpublic RandomAccessFileOrArray getSafeFile()
public RandomAccessFileOrArray getFile()
public String readString(int size) throws IOException
IOExceptionpublic static final boolean isWhitespace(int ch)
public static final boolean isDelimiter(int ch)
public static final boolean isDelimiterWhitespace(int ch)
public int getTokenType()
public String getStringValue()
public int getReference()
public int getGeneration()
public void backOnePosition(int ch)
public void throwError(String error) throws IOException
IOExceptionpublic char checkPdfHeader()
throws IOException
IOExceptionpublic void checkFdfHeader()
throws IOException
IOExceptionpublic int getStartxref()
throws IOException
IOExceptionpublic static int getHex(int v)
public void nextValidToken()
throws IOException
IOExceptionpublic boolean nextToken()
throws IOException
IOExceptionpublic int intValue()
public boolean readLineSegment(byte[] input)
throws IOException
IOExceptionpublic static int[] checkObjectStart(byte[] line)
public boolean isHexString()
Copyright © 2019. All rights reserved.