iText 5

ParseState

ParseState Internal class

Description

@since 22.08.2006

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.xmp.impl iTextSharp.xmp.impl.ParseState[[ParseState]] end

Members

Methods

Public methods

Returns

Name

char

Ch

(...)

int

GatherInt

(string errorMsg, int maxValue)
Parses a integer from the source and sets the pointer after it.

bool

HasNext

()

int

Length

()

int

Pos

()

void

Skip

()
Skips the next char.

Details

Summary

@since 22.08.2006

Constructors

ParseState

Source code

public ParseState(string str)

Arguments

Type

Name

Description

string

str

initializes the parser container

Methods

Length

Source code

public virtual int Length()

Returns

Returns the length of the input.

HasNext

Source code

public virtual bool HasNext()

Returns

Returns whether there are more chars to come.

Ch [1/2]

Source code

public virtual char Ch(int index)

Arguments

Type

Name

Description

int

index

index of char

Returns

Returns char at a certain index.

Ch [2/2]

Source code

public virtual char Ch()

Returns

Returns the current char or 0x0000 if there are no more chars.

Skip

Source code

public virtual void Skip()

Summary

Skips the next char.

Pos

Source code

public virtual int Pos()

Returns

Returns the current position.

GatherInt

Source code

public virtual int GatherInt(string errorMsg, int maxValue)

Arguments

Type

Name

Description

string

errorMsg

Error message to put in the exception if no number can be found

int

maxValue

the max value of the number to return

Summary

Parses a integer from the source and sets the pointer after it.

Returns

Returns the parsed integer.

Exceptions

Name

Description

XmpException

Thrown if no integer can be found.

Generated with ModularDoc