Package org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper.PrinterEncoding


  }

  private void sendDefineCodepage(final String codePage)
      throws IOException
  {
    final PrinterEncoding spec = getPrinterSpecification().getEncoding(codePage);
    final byte[] cp = spec.getCode();
    out.write(0x1b); // ESC
    out.write(0x5b); // [
    out.write(0x54); // T
    out.write(0x04); // 0x04 (according to LexMark Manual P.30)
    out.write(0x00); //  const.
View Full Code Here


     */
    public PrinterEncoding getEncoding(final String encoding)
    {
      try
      {
        return new PrinterEncoding
            (encoding, encoding, encoding, IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification.translateCodePage(
                encoding));
      }
      catch (UnsupportedEncodingException e)
      {
View Full Code Here

      {
        throw new IllegalArgumentException(EncodingSelector.MESSAGES.getErrorString(
            "EncodingSelector.ERROR_0001_ENCODING_NOT_SUPPORTED")); //$NON-NLS-1$
      }

      return new PrinterEncoding(encoding, encoding, encoding, GenericPrinterSpecification.EMPTY_ARRAY);
    }
View Full Code Here

  }

  private void sendDefineCodepage(final String codePage)
      throws IOException
  {
    final PrinterEncoding spec = getPrinterSpecification().getEncoding(codePage);
    final byte[] cp = spec.getCode();
    out.write(0x1b); // ESC
    out.write(0x5b); // [
    out.write(0x54); // T
    out.write(0x04); // 0x04 (according to LexMark Manual P.30)
    out.write(0x00); //  const.
View Full Code Here

     */
    public PrinterEncoding getEncoding(final String encoding)
    {
      try
      {
        return new PrinterEncoding
            (encoding, encoding, encoding, IBMCompatiblePrinterDriver.GenericIBMPrinterSpecification.translateCodePage(
                encoding));
      }
      catch (UnsupportedEncodingException e)
      {
View Full Code Here

      {
        throw new IllegalArgumentException(EncodingSelector.MESSAGES.getErrorString(
            "EncodingSelector.ERROR_0001_ENCODING_NOT_SUPPORTED")); //$NON-NLS-1$
      }

      return new PrinterEncoding(encoding, encoding, encoding, GenericPrinterSpecification.EMPTY_ARRAY);
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper.PrinterEncoding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.