Class FOPCFFDataInput

  • All Implemented Interfaces:
    org.apache.fontbox.cff.DataInput

    public class FOPCFFDataInput
    extends org.apache.fontbox.cff.DataInputByteArray
    • Field Detail

      • inputBuffer

        private final byte[] inputBuffer
      • bufferPosition

        private int bufferPosition
    • Constructor Detail

      • FOPCFFDataInput

        public FOPCFFDataInput​(byte[] buffer)
    • Method Detail

      • hasRemaining

        public boolean hasRemaining()
                             throws java.io.IOException
        Specified by:
        hasRemaining in interface org.apache.fontbox.cff.DataInput
        Overrides:
        hasRemaining in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • getPosition

        public int getPosition()
        Specified by:
        getPosition in interface org.apache.fontbox.cff.DataInput
        Overrides:
        getPosition in class org.apache.fontbox.cff.DataInputByteArray
      • setPosition

        public void setPosition​(int position)
                         throws java.io.IOException
        Specified by:
        setPosition in interface org.apache.fontbox.cff.DataInput
        Overrides:
        setPosition in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • readByte

        public byte readByte()
                      throws java.io.IOException
        Specified by:
        readByte in interface org.apache.fontbox.cff.DataInput
        Overrides:
        readByte in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • readUnsignedByte

        public int readUnsignedByte()
                             throws java.io.IOException
        Specified by:
        readUnsignedByte in interface org.apache.fontbox.cff.DataInput
        Overrides:
        readUnsignedByte in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • peekUnsignedByte

        public int peekUnsignedByte​(int offset)
                             throws java.io.IOException
        Specified by:
        peekUnsignedByte in interface org.apache.fontbox.cff.DataInput
        Overrides:
        peekUnsignedByte in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • readBytes

        public byte[] readBytes​(int length)
                         throws java.io.IOException
        Specified by:
        readBytes in interface org.apache.fontbox.cff.DataInput
        Overrides:
        readBytes in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException
      • length

        public int length()
                   throws java.io.IOException
        Specified by:
        length in interface org.apache.fontbox.cff.DataInput
        Overrides:
        length in class org.apache.fontbox.cff.DataInputByteArray
        Throws:
        java.io.IOException