Class Type1CharStringFormatter


  • public class Type1CharStringFormatter
    extends java.lang.Object
    This class represents a formatter for CharString commands of a Type1 font. author Villu Ruusmann
    Version:
    $Revision: 1.0 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.ByteArrayOutputStream output  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] format​(java.util.List<java.lang.Object> sequence)
      Formats the given command sequence to a byte array.
      private void writeCommand​(org.apache.fontbox.cff.CharStringCommand command)  
      private void writeNumber​(java.lang.Integer number)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • output

        private java.io.ByteArrayOutputStream output
    • Constructor Detail

      • Type1CharStringFormatter

        public Type1CharStringFormatter()
    • Method Detail

      • format

        public byte[] format​(java.util.List<java.lang.Object> sequence)
        Formats the given command sequence to a byte array.
        Parameters:
        sequence - the given command sequence
        Returns:
        the formatted seuqence as byte array
      • writeCommand

        private void writeCommand​(org.apache.fontbox.cff.CharStringCommand command)
      • writeNumber

        private void writeNumber​(java.lang.Integer number)