Class FileFontDataInputSource

  • All Implemented Interfaces:
    FontDataInputSource

    public class FileFontDataInputSource
    extends java.lang.Object
    implements FontDataInputSource
    Creation-Date: 15.12.2005, 15:55:56
    Author:
    Thomas Morgner
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      boolean equals​(java.lang.Object o)  
      java.io.File getFile()  
      java.lang.String getFileName()  
      long getLength()  
      int hashCode()  
      int readAt​(long position)
      Reads a single byte, returns -1 if the end of the stream as been reached.
      int readAt​(long position, byte[] buffer, int offset, int length)  
      void readFullyAt​(long position, byte[] buffer, int length)  
      • Methods inherited from class java.lang.Object

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

      • FileFontDataInputSource

        public FileFontDataInputSource​(java.io.File file)
                                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readFullyAt

        public void readFullyAt​(long position,
                                byte[] buffer,
                                int length)
                         throws java.io.IOException
        Specified by:
        readFullyAt in interface FontDataInputSource
        Throws:
        java.io.IOException
      • readAt

        public int readAt​(long position,
                          byte[] buffer,
                          int offset,
                          int length)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readAt

        public int readAt​(long position)
                   throws java.io.IOException
        Description copied from interface: FontDataInputSource
        Reads a single byte, returns -1 if the end of the stream as been reached.
        Specified by:
        readAt in interface FontDataInputSource
        Returns:
        Throws:
        java.io.IOException
      • getFile

        public java.io.File getFile()
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface FontDataInputSource
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface FontDataInputSource
        Overrides:
        hashCode in class java.lang.Object