public final class PageRanges extends javax.print.attribute.SetOfIntegerSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.PrintJobAttribute
PageRanges printing attribute specifies the
range(s) of pages to be printed in a print job.
Note: The effect of this attribute on jobs with multiple
documents is controlled by the job attribute
MultipleDocumentHandling.
IPP Compatibility: PageRanges is an IPP 1.1 attribute.
| Constructor and Description |
|---|
PageRanges(int member)
Constructs a
PageRanges object with only one
page to be printed. |
PageRanges(int[][] members)
Constructs a
PageRanges object with a set
of ranges to be printed. |
PageRanges(int lowerBound,
int upperBound)
Constructs a
PageRanges object with the
given single range of pages to be printed. |
PageRanges(java.lang.String members)
Constructs a
PageRanges object with a set
of ranges to be printed in string array form. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public PageRanges(int member)
PageRanges object with only one
page to be printed.member - the only page to be printed.java.lang.IllegalArgumentException - if member is < 1public PageRanges(int[][] members)
PageRanges object with a set
of ranges to be printed.members - the page ranges to be printed.java.lang.IllegalArgumentException - if any element is invalidjava.lang.NullPointerException - if members is null or any
element of members is null.public PageRanges(int lowerBound, int upperBound)
PageRanges object with the
given single range of pages to be printed.lowerBound - the lower bound valueupperBound - the upper bound valuejava.lang.IllegalArgumentException - if lowerBound <= upperbound
and lowerBound < 1public PageRanges(java.lang.String members)
PageRanges object with a set
of ranges to be printed in string array form.members - the page ranges to be printed in string form.java.lang.IllegalArgumentException - if any element is invalid.java.lang.NullPointerException - if members is null or any
element of members is null.public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.SetOfIntegerSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributePageRanges itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute