javax.print.attribute.standard
Class JobKOctetsProcessed

java.lang.Object
  extended by javax.print.attribute.IntegerSyntax
      extended by javax.print.attribute.standard.JobKOctetsProcessed
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute

public final class JobKOctetsProcessed
extends IntegerSyntax
implements PrintJobAttribute

The JobKOctetsProcessed printing attribute reports the total number of octets already processed in K octets units.

The supplied value will be rounded up to the next highest K octets. This attribute will not include a multiplication factor from the number of copies.

This attribute belongs to a group of job progress attributes which are reporting on the progress of a print job.

IPP Compatibility: JobKOctetsProcessed is an IPP 1.1 attribute.

See Also:
JobMediaSheetsCompleted, JobImpressionsCompleted, Serialized Form

Constructor Summary
JobKOctetsProcessed(int value)
          Creates a JobKOctetsProcessed object.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object is equal to this object.
 Class<? extends Attribute> getCategory()
          Returns category of this class.
 String getName()
          Returns the name of this attribute.
 
Methods inherited from class javax.print.attribute.IntegerSyntax
getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobKOctetsProcessed

public JobKOctetsProcessed(int value)
Creates a JobKOctetsProcessed object. The value is in units of K (1024) octets rounded up to the next highest K.

Parameters:
value - the number of processed K octets
Throws:
IllegalArgumentException - if value < 0
Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Overrides:
equals in class IntegerSyntax
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class JobKOctetsProcessed itself.

getName

public String getName()
Returns the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
The name "job-k-octets-processed".