Package com.lowagie.text.pdf
Class SequenceList
java.lang.Object
com.lowagie.text.pdf.SequenceList
This class expands a string into a list of numbers. The main use is to select a
range of pages.
The general syntax is:
[!][o][odd][e][even]start-end
You can have multiple ranges separated by commas ','. The '!' modifier removes the range from what is already selected. The range changes are incremental, that is, numbers are added or deleted as the range appears. The start or the end, but not both, can be omitted.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final charprotected booleanprotected intprotected booleanprotected intprotected static final intprotected static final intprotected intprotected static final intprotected booleanprotected Stringprotected intprotected char[]protected static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COMMA
protected static final int COMMA- See Also:
-
MINUS
protected static final int MINUS- See Also:
-
NOT
protected static final int NOT- See Also:
-
TEXT
protected static final int TEXT- See Also:
-
NUMBER
protected static final int NUMBER- See Also:
-
END
protected static final int END- See Also:
-
EOT
protected static final char EOT- See Also:
-
text
protected char[] text -
ptr
protected int ptr -
number
protected int number -
other
-
low
protected int low -
high
protected int high -
odd
protected boolean odd -
even
protected boolean even -
inverse
protected boolean inverse
-
-
Constructor Details
-
SequenceList
-
-
Method Details
-
nextChar
protected char nextChar() -
putBack
protected void putBack() -
getType
protected int getType() -
getAttributes
protected boolean getAttributes() -
expand
Generates a list of numbers from a string.- Parameters:
ranges- the comma separated rangesmaxNumber- the maximum number in the range- Returns:
- a list with the numbers as
Integer
-