Interface EscPosPrintObject

  • All Known Implementing Classes:
    EscPosBarcode, EscPosImage, EscPosQRCode

    public interface EscPosPrintObject
    Interface for ESC/POS printable objects.

    A printable object is usually some sort of graphical data (image, bar code or QR code) that have its own set of ESC/POS configuration commands.

    Since:
    TotalCross 4.2.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void write​(java.io.OutputStream out)
      Writes this printable object to the given output stream.
    • Method Detail

      • write

        void write​(java.io.OutputStream out)
            throws java.io.IOException
        Writes this printable object to the given output stream.
        Parameters:
        out - the output stream
        Throws:
        java.io.IOException - if an I/O error occurs.