|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.pdf.SequenceList
public class 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 | |
---|---|
protected static int |
COMMA
|
protected static int |
END
|
protected static char |
EOT
|
protected boolean |
even
|
protected int |
high
|
protected boolean |
inverse
|
protected int |
low
|
protected static int |
MINUS
|
protected static int |
NOT
|
protected int |
number
|
protected static int |
NUMBER
|
protected boolean |
odd
|
protected java.lang.String |
other
|
protected int |
ptr
|
protected char[] |
text
|
protected static int |
TEXT
|
Constructor Summary | |
---|---|
protected |
SequenceList(java.lang.String range)
|
Method Summary | |
---|---|
static java.util.List |
expand(java.lang.String ranges,
int maxNumber)
Generates a list of numbers from a string. |
protected boolean |
getAttributes()
|
protected int |
getType()
|
protected char |
nextChar()
|
protected void |
putBack()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int COMMA
protected static final int MINUS
protected static final int NOT
protected static final int TEXT
protected static final int NUMBER
protected static final int END
protected static final char EOT
protected char[] text
protected int ptr
protected int number
protected java.lang.String other
protected int low
protected int high
protected boolean odd
protected boolean even
protected boolean inverse
Constructor Detail |
---|
protected SequenceList(java.lang.String range)
Method Detail |
---|
protected char nextChar()
protected void putBack()
protected int getType()
protected boolean getAttributes()
public static java.util.List expand(java.lang.String ranges, int maxNumber)
ranges
- the comma separated rangesmaxNumber
- the maximum number in the range
Integer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |