java.lang.Object
com.lowagie.text.pdf.PdfContentParser
Deprecated.
Parses the page or template content.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Commands have this type. -
Constructor Summary
ConstructorsConstructorDescriptionPdfContentParser(PRTokeniser tokeniser) Deprecated.Creates a new instance of PdfContentParser -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the tokeniser.booleanDeprecated.Reads the next token skipping over the comments.Deprecated.Parses a single command from the content.Deprecated.Reads an array.Deprecated.Reads a dictionary.Deprecated.Reads a pdf object.voidsetTokeniser(PRTokeniser tokeniser) Deprecated.Sets the tokeniser.
-
Field Details
-
COMMAND_TYPE
public static final int COMMAND_TYPEDeprecated.Commands have this type.- See Also:
-
-
Constructor Details
-
PdfContentParser
Deprecated.Creates a new instance of PdfContentParser- Parameters:
tokeniser- the tokeniser with the content
-
-
Method Details
-
parse
Deprecated.Parses a single command from the content. Each command is output as an array of arguments having the command itself as the last element. The returned array will be empty if the end of content was reached.- Parameters:
ls- anArrayListto use. It will be cleared before using. If it'snullwill create a newArrayList- Returns:
- the same
ArrayListgiven as argument or a new one - Throws:
IOException- on error
-
getTokeniser
Deprecated.Gets the tokeniser.- Returns:
- the tokeniser.
-
setTokeniser
Deprecated.Sets the tokeniser.- Parameters:
tokeniser- the tokeniser
-
readDictionary
Deprecated.Reads a dictionary. The tokeniser must be positioned past the "<<" token.- Returns:
- the dictionary
- Throws:
IOException- on error
-
readArray
Deprecated.Reads an array. The tokeniser must be positioned past the "[" token.- Returns:
- an array
- Throws:
IOException- on error
-
readPRObject
Deprecated.Reads a pdf object.- Returns:
- the pdf object
- Throws:
IOException- on error
-
nextValidToken
Deprecated.Reads the next token skipping over the comments.- Returns:
trueif a token was read,falseif the end of content was reached- Throws:
IOException- on error
-