public class DefaultPrinterSpecification extends Object implements PrinterSpecification, Cloneable
Constructor and Description |
---|
DefaultPrinterSpecification(String name,
String displayName) |
Modifier and Type | Method and Description |
---|---|
void |
addEncoding(PrinterEncoding encoding) |
Object |
clone() |
boolean |
contains(PrinterEncoding encoding) |
String |
getDisplayName() |
PrinterEncoding |
getEncoding(String encoding)
Returns the encoding definition for the given java encoding.
|
String |
getName()
Returns the name of the encoding mapping.
|
PrinterEncoding[] |
getSupportedEncodings() |
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.
|
void |
removeEncoding(PrinterEncoding encoding) |
public String getDisplayName()
getDisplayName
in interface PrinterSpecification
public String getName()
getName
in interface PrinterSpecification
public boolean isEncodingSupported(String encoding)
PrinterSpecification
isEncodingSupported
in interface PrinterSpecification
encoding
- the java encoding that should be mapped into a printer specific encoding.public boolean contains(PrinterEncoding encoding)
public PrinterEncoding getEncoding(String encoding)
getEncoding
in interface PrinterSpecification
encoding
- the java encoding that should be mapped into a printer specific encoding.IllegalArgumentException
- if the given encoding is not supported.public void addEncoding(PrinterEncoding encoding)
public void removeEncoding(PrinterEncoding encoding)
public PrinterEncoding[] getSupportedEncodings()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isFeatureAvailable(String operationName)
isFeatureAvailable
in interface PrinterSpecification
operationName
- the operation, that should be performed