Class IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification

    • Constructor Detail

      • GenericIBMPrinterSpecification

        public GenericIBMPrinterSpecification()
    • Method Detail

      • 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.