Printer Interface Reference

Printer. More...

Inheritance diagram for Printer:

Public Member Functions

String getId ()
 Gets printer identifier. More...
 
PrinterInformation getPrinterInformation () throws PrinterLowLevelException, PrinterNotAvailableException
 Gets printer information. More...
 
List< PrintConfiggetDefaultConfiguration () throws PrinterLowLevelException, PrinterNotAvailableException
 Gets list of configurations of the printer. More...
 
void setDefaultConfiguration (PrintConfig configuration) throws PrinterLowLevelException, PrinterNotAvailableException
 Sets a configuration to the printer. More...
 
Job printImage (String uri) throws PrinterLowLevelException, PrinterNotAvailableException
 Adds a job to the queue. More...
 
Job printImage (String uri, List< PrintConfig > configurations) throws PrinterLowLevelException, PrinterNotAvailableException
 Adds a job to the queue. More...
 
List< JobgetJobList () throws PrinterLowLevelException, PrinterNotAvailableException
 Gets list of jobs of the printer. More...
 
void deleteJob (Job job) throws PrinterLowLevelException, PrinterNotAvailableException
 Delete a specific job from the job list. More...
 
void printTestTicket () throws PrinterLowLevelException, PrinterNotAvailableException
 Prints a test ticket. More...
 
- Public Member Functions inherited from Subject< T extends Observer< U, U extends Event >
void subscribe (T observer) throws CannotSubscribeException
 
void unSubscribe (T observer) throws ObserverNotSubscribedException
 

Detailed Description

Printer

Member Function Documentation

◆ deleteJob()

Parameters
jobjob to be removed
Exceptions
PrinterLowLevelException
PrinterNotAvailableException

◆ getDefaultConfiguration()

List<PrintConfig> getDefaultConfiguration ( ) throws PrinterLowLevelException, PrinterNotAvailableException
Returns
printer list of configurations
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ getId()

String getId ( )
Returns
printer unique identifier

◆ getJobList()

Returns
printer list of jobs
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ getPrinterInformation()

Returns
printer information
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ printImage() [1/2]

Job printImage ( String  uri) throws PrinterLowLevelException, PrinterNotAvailableException
Parameters
uripath of the image
Returns
job added to the list
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ printImage() [2/2]

Job printImage ( String  uri,
List< PrintConfig configurations 
) throws PrinterLowLevelException, PrinterNotAvailableException
Parameters
uripath of the image
configurationslist of specific configurations
Returns
job added to the list
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ printTestTicket()

void printTestTicket ( ) throws PrinterLowLevelException, PrinterNotAvailableException
Exceptions
PrinterNotAvailableException
PrinterLowLevelException

◆ setDefaultConfiguration()

void setDefaultConfiguration ( PrintConfig  configuration) throws PrinterLowLevelException, PrinterNotAvailableException
Parameters
configurationconfiguration
Exceptions
PrinterNotAvailableException
PrinterLowLevelException