org.pentaho.reporting.libraries.fonts.io
Class ResourceFontDataInputSource
java.lang.Object
org.pentaho.reporting.libraries.fonts.io.ResourceFontDataInputSource
- All Implemented Interfaces:
- FontDataInputSource
public class ResourceFontDataInputSource
- extends Object
- implements FontDataInputSource
The current use of iText and its inherent dependence on the font filename
makes it not feasible to use libLoader for the font loading right now.
- Author:
- Thomas Morgner
Constructor Summary |
ResourceFontDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceManager loader,
org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
|
ResourceFontDataInputSource
public ResourceFontDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceManager loader,
org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
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)
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
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