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 int
private static final int
private static final int
protected static final int
protected static final char
protected boolean
private static final int
protected int
protected boolean
protected int
protected static final int
protected static final int
private static final String
protected int
protected static final int
protected boolean
protected String
private static final int
protected int
protected 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:
-
FIRST
private static final int FIRST- See Also:
-
DIGIT
private static final int DIGIT- See Also:
-
OTHER
private static final int OTHER- See Also:
-
DIGIT2
private static final int DIGIT2- See Also:
-
NOT_OTHER
- 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
-
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
-
nextChar
protected char nextChar() -
putBack
protected void putBack() -
getType
protected int getType() -
otherProc
private void otherProc() -
getAttributes
protected boolean getAttributes()
-