javax.print.attribute.standard

Class JobKOctetsProcessed

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

Constructor Summary
JobKOctetsProcessed(int value)
Creates a JobKOctetsProcessed object.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

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.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

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

Returns: The class JobKOctetsProcessed itself.

getName

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

Returns: The name "job-k-octets-processed".