Class FontByteArray

  • Direct Known Subclasses:
    OTByteArray

    public class FontByteArray
    extends java.lang.Object
    A sequence of bytes in an OpenType font file, with methods to access the basic types. The return type of the various accessors for the integral types is int whenever the OpenType type fits in [-2^31 .. 2^31-1], long otherwise. The only exception is getuint32asint
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      byte[] getBytes​(int index, int length)  
      void getBytes​(FontByteArray toArray, int toBufferOffset, int fromBufferOffset, int fromBufferLength)
      Copy 'fromBufferLength' bytes, starting at 'fromBufferOffset', from 'this' to 'toBufferOffset' in 'toArray'.
      int getSize()  
      int hashCode()  
      void write​(java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSize

        public final int getSize()
      • getBytes

        public final void getBytes​(FontByteArray toArray,
                                   int toBufferOffset,
                                   int fromBufferOffset,
                                   int fromBufferLength)
        Copy 'fromBufferLength' bytes, starting at 'fromBufferOffset', from 'this' to 'toBufferOffset' in 'toArray'.
      • getBytes

        public final byte[] getBytes​(int index,
                                     int length)
      • write

        public void write​(java.io.OutputStream out)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object