Interface PrinterSpecification
-
- All Known Implementing Classes:
DefaultPrinterSpecification
,EncodingSelector.GenericPrinterSpecification
,IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification
public interface PrinterSpecification
-
-
Method Summary
All Methods Instance Methods Abstract 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
String getDisplayName()
-
getName
String getName()
Returns the name of the encoding mapping. This is usually the same as the printer model name.- Returns:
- the printer model.
-
isEncodingSupported
boolean isEncodingSupported(String encoding)
Checks whether the given Java-encoding is supported.- Parameters:
encoding
- the java encoding that should be mapped into a printer specific encoding.- Returns:
- true, if there is a mapping, false otherwise.
-
getEncoding
PrinterEncoding getEncoding(String encoding)
Returns the encoding definition for the given java encoding.- 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.
-
isFeatureAvailable
boolean isFeatureAvailable(String operationName)
Returns true, if a given operation is supported, false otherwise.- Parameters:
operationName
- the operation, that should be performed- Returns:
- true, if the printer will be able to perform that operation, false otherwise.
-
-