com.itextpdf.text.pdf
Class PRTokeniser
java.lang.Object
com.itextpdf.text.pdf.PRTokeniser
public class PRTokeniser
- extends java.lang.Object
- Author:
- Paulo Soares
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delims
public static final boolean[] delims
type
protected PRTokeniser.TokenType type
stringValue
protected java.lang.String stringValue
reference
protected int reference
generation
protected int generation
hexString
protected boolean hexString
PRTokeniser
public PRTokeniser(RandomAccessFileOrArray file)
- Creates a PRTokeniser for the specified
RandomAccessSource
.
The beginning of the file is read to determine the location of the header, and the data source is adjusted
as necessary to account for any junk that occurs in the byte source before the header
- Parameters:
byteSource
- the source
seek
public void seek(long pos)
throws java.io.IOException
- Throws:
java.io.IOException
getFilePointer
public long getFilePointer()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
length
public long length()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
getSafeFile
public RandomAccessFileOrArray getSafeFile()
getFile
public RandomAccessFileOrArray getFile()
readString
public java.lang.String readString(int size)
throws java.io.IOException
- Throws:
java.io.IOException
isWhitespace
public static final boolean isWhitespace(int ch)
isDelimiter
public static final boolean isDelimiter(int ch)
isDelimiterWhitespace
public static final boolean isDelimiterWhitespace(int ch)
getTokenType
public PRTokeniser.TokenType getTokenType()
getStringValue
public java.lang.String getStringValue()
getReference
public int getReference()
getGeneration
public int getGeneration()
backOnePosition
public void backOnePosition(int ch)
throwError
public void throwError(java.lang.String error)
throws java.io.IOException
- Throws:
java.io.IOException
getHeaderOffset
public int getHeaderOffset()
throws java.io.IOException
- Throws:
java.io.IOException
checkPdfHeader
public char checkPdfHeader()
throws java.io.IOException
- Throws:
java.io.IOException
checkFdfHeader
public void checkFdfHeader()
throws java.io.IOException
- Throws:
java.io.IOException
getStartxref
public long getStartxref()
throws java.io.IOException
- Throws:
java.io.IOException
getHex
public static int getHex(int v)
nextValidToken
public void nextValidToken()
throws java.io.IOException
- Throws:
java.io.IOException
nextToken
public boolean nextToken()
throws java.io.IOException
- Throws:
java.io.IOException
longValue
public long longValue()
intValue
public int intValue()
readLineSegment
public boolean readLineSegment(byte[] input)
throws java.io.IOException
- Throws:
java.io.IOException
checkObjectStart
public static long[] checkObjectStart(byte[] line)
isHexString
public boolean isHexString()
Copyright © 2013. All Rights Reserved.