Table of Contents

Class PrTokeniser

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

@author Paulo Soares (psoares@consiste.pt)

public class PrTokeniser
Inheritance
PrTokeniser
Inherited Members

Constructors

PrTokeniser(byte[])

public PrTokeniser(byte[] pdfIn)

Parameters

pdfIn byte[]

PrTokeniser(string)

public PrTokeniser(string filename)

Parameters

filename string

PrTokeniser(RandomAccessFileOrArray)

public PrTokeniser(RandomAccessFileOrArray file)

Parameters

file RandomAccessFileOrArray

Fields

HexString

protected bool HexString

Field Value

bool

TK_COMMENT

public const int TK_COMMENT = 4

Field Value

int

TK_END_ARRAY

public const int TK_END_ARRAY = 6

Field Value

int

TK_END_DIC

public const int TK_END_DIC = 8

Field Value

int

TK_NAME

public const int TK_NAME = 3

Field Value

int

TK_NUMBER

public const int TK_NUMBER = 1

Field Value

int

TK_OTHER

public const int TK_OTHER = 10

Field Value

int

TK_REF

public const int TK_REF = 9

Field Value

int

TK_START_ARRAY

public const int TK_START_ARRAY = 5

Field Value

int

TK_START_DIC

public const int TK_START_DIC = 7

Field Value

int

TK_STRING

public const int TK_STRING = 2

Field Value

int

Type

protected int Type

Field Value

int

file

protected RandomAccessFileOrArray file

Field Value

RandomAccessFileOrArray

generation

protected int generation

Field Value

int

reference

protected int reference

Field Value

int

stringValue

protected string stringValue

Field Value

string

Properties

File

public RandomAccessFileOrArray File { get; }

Property Value

RandomAccessFileOrArray

FilePointer

public int FilePointer { get; }

Property Value

int

Generation

public int Generation { get; }

Property Value

int

IntValue

public int IntValue { get; }

Property Value

int

Length

public int Length { get; }

Property Value

int

Reference

public int Reference { get; }

Property Value

int

SafeFile

public RandomAccessFileOrArray SafeFile { get; }

Property Value

RandomAccessFileOrArray

Startxref

public long Startxref { get; }

Property Value

long

StringValue

public string StringValue { get; }

Property Value

string

TokenType

public int TokenType { get; }

Property Value

int

Methods

BackOnePosition(int)

public void BackOnePosition(int ch)

Parameters

ch int

CheckFdfHeader()

public void CheckFdfHeader()

CheckObjectStart(byte[])

public static int[] CheckObjectStart(byte[] line)

Parameters

line byte[]

Returns

int[]

CheckPdfHeader()

public char CheckPdfHeader()

Returns

char

Close()

public void Close()

GetHex(int)

public static int GetHex(int v)

Parameters

v int

Returns

int

IsDelimiter(int)

public static bool IsDelimiter(int ch)

Parameters

ch int

Returns

bool

IsHexString()

public bool IsHexString()

Returns

bool

IsWhitespace(int)

public static bool IsWhitespace(int ch)

Parameters

ch int

Returns

bool

NextToken()

public bool NextToken()

Returns

bool

NextValidToken()

public void NextValidToken()

Read()

public int Read()

Returns

int

ReadLineSegment(byte[])

public bool ReadLineSegment(byte[] input)

Parameters

input byte[]

Returns

bool

ReadString(int)

public string ReadString(int size)

Parameters

size int

Returns

string

Seek(int)

public void Seek(int pos)

Parameters

pos int

ThrowError(string)

public void ThrowError(string error)

Parameters

error string