Class IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification
- java.lang.Object
-
- 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
Constructors Constructor Description GenericIBMPrinterSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfacePrinterSpecification
-
getEncoding
public PrinterEncoding getEncoding(String encoding)
Returns the encoding definition for the given java encoding.- Specified by:
getEncoding
in interfacePrinterSpecification
- 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 interfacePrinterSpecification
- Returns:
- the printer model.
-
isEncodingSupported
public boolean isEncodingSupported(String encoding)
Checks whether the given Java-encoding is supported.- Specified by:
isEncodingSupported
in interfacePrinterSpecification
- 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 interfacePrinterSpecification
- Parameters:
operationName
- the operation, that should be performed- Returns:
- true, if the printer will be able to perform that operation, false otherwise.
-
-