Interface EmbosserWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getRowGap()
      Gets the current row gap, measured as an integer multiple of the dot-to-dot height.
      boolean isClosed()
      Tests if embosser has been closed.
      boolean isOpen()
      Returns true if embosser is open.
      void newLine()
      Starts a new line.
      void newPage()
      Starts a new page.
      void newSectionAndPage​(boolean duplex)
      Starts a new page on a blank sheet of paper with the specified duplex settings.
      void newVolumeSectionAndPage​(boolean duplex)
      Starts a new page on a blank sheet of paper in a new volume with the specified duplex settings.
      void open​(boolean duplex)
      Opens for writing using the default contract.
      void setRowGap​(int value)
      Sets the row gap for following calls to newLine to the specified value, measured as an integer multiple of the dot-to-dot height.
      void write​(String braille)
      Writes a string of braille to the embosser.
    • Method Detail

      • write

        void write​(String braille)
            throws IOException
        Writes a string of braille to the embosser. Values must be between 0x2800 and 0x28FF. An implementation may supply a complete row of braille in a single chunk. However, an implementation may also call this method repeatedly without any other calls in between.
        Parameters:
        braille - characters in the range 0x2800 to 0x28FF
        Throws:
        IOException - if an I/O error occurs
      • newSectionAndPage

        void newSectionAndPage​(boolean duplex)
                        throws IOException
        Starts a new page on a blank sheet of paper with the specified duplex settings.
        Parameters:
        duplex - if both sides of sheets should be used, false otherwise
        Throws:
        IOException - if an I/O error occurs
      • newVolumeSectionAndPage

        void newVolumeSectionAndPage​(boolean duplex)
                              throws IOException
        Starts a new page on a blank sheet of paper in a new volume with the specified duplex settings.
        Parameters:
        duplex - if both sides of sheets should be used, false otherwise
        Throws:
        IOException - if an I/O error occurs
      • open

        void open​(boolean duplex)
           throws IOException
        Opens for writing using the default contract.
        Parameters:
        duplex - true if both sides of sheets should be used, false otherwise
        Throws:
        IOException - if an I/O error occurs
      • isOpen

        boolean isOpen()
        Returns true if embosser is open.
        Returns:
        returns true if embosser is open, false otherwise
      • isClosed

        boolean isClosed()
        Tests if embosser has been closed.
        Returns:
        returns true if the embosser has been open, but is now closed, false otherwise
      • setRowGap

        void setRowGap​(int value)
        Sets the row gap for following calls to newLine to the specified value, measured as an integer multiple of the dot-to-dot height.
        Parameters:
        value - the row gap
      • getRowGap

        int getRowGap()
        Gets the current row gap, measured as an integer multiple of the dot-to-dot height.
        Returns:
        returns the current row gap