org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.driver
Class IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.driver.IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification
All Implemented Interfaces:
PrinterSpecification
Enclosing class:
IBMCompatiblePrinterDriver

public static class IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification
extends Object
implements PrinterSpecification


Constructor Summary
IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification()
           
 
Method Summary
 String getDisplayName()
           
 PrinterEncoding getEncoding(String encoding)
          Returns the encoding definition for the given java encoding.
 String getName()
          Returns the name of the encoding mapping.
 boolean isEncodingSupported(String encoding)
          Checks whether the given Java-encoding is supported.
 boolean isFeatureAvailable(String operationName)
          Returns true, if a given operation is supported, false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification

public IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface PrinterSpecification

getEncoding

public PrinterEncoding getEncoding(String encoding)
Returns the encoding definition for the given java encoding.

Specified by:
getEncoding in interface PrinterSpecification
Parameters:
encoding - the java encoding that should be mapped into a printer specific encoding.
Returns:
the printer specific encoding.
Throws:
IllegalArgumentException - if the given encoding is not supported.

getName

public String getName()
Returns the name of the encoding mapping. This is usually the same as the printer model name.

Specified by:
getName in interface PrinterSpecification
Returns:
the printer model.

isEncodingSupported

public boolean isEncodingSupported(String encoding)
Checks whether the given Java-encoding is supported.

Specified by:
isEncodingSupported in interface PrinterSpecification
Parameters:
encoding - the java encoding that should be mapped into a printer specific encoding.
Returns:
true, if there is a mapping, false otherwise.

isFeatureAvailable

public boolean isFeatureAvailable(String operationName)
Returns true, if a given operation is supported, false otherwise.

Specified by:
isFeatureAvailable in interface PrinterSpecification
Parameters:
operationName - the operation, that should be performed
Returns:
true, if the printer will be able to perform that operation, false otherwise.