org.pentaho.reporting.libraries.fonts.io
Class FileFontDataInputSource

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.io.FileFontDataInputSource
All Implemented Interfaces:
FontDataInputSource

public class FileFontDataInputSource
extends Object
implements FontDataInputSource

Creation-Date: 15.12.2005, 15:55:56

Author:
Thomas Morgner

Constructor Summary
FileFontDataInputSource(File file)
           
 
Method Summary
 void dispose()
           
 boolean equals(Object o)
           
 File getFile()
           
 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(File file)
                        throws IOException
Throws:
IOException
Method Detail

getLength

public long getLength()
Specified by:
getLength in interface FontDataInputSource

readFullyAt

public void readFullyAt(long position,
                        byte[] buffer,
                        int length)
                 throws IOException
Specified by:
readFullyAt in interface FontDataInputSource
Throws:
IOException

readAt

public int readAt(long position,
                  byte[] buffer,
                  int offset,
                  int length)
           throws IOException
Throws:
IOException

readAt

public int readAt(long position)
           throws 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:
IOException

dispose

public void dispose()
Specified by:
dispose in interface FontDataInputSource

getFile

public File getFile()

getFileName

public String getFileName()
Specified by:
getFileName in interface FontDataInputSource

equals

public boolean equals(Object o)
Specified by:
equals in interface FontDataInputSource
Overrides:
equals in class Object

hashCode

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