Class ResourceFontDataInputSource
java.lang.Object
org.pentaho.reporting.libraries.fonts.io.ResourceFontDataInputSource
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionResourceFontDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceManager loader, org.pentaho.reporting.libraries.resourceloader.ResourceKey source) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()booleanlonginthashCode()intreadAt(long position) Reads a single byte, returns -1 if the end of the stream as been reached.voidreadFullyAt(long position, byte[] buffer, int length)
-
Constructor Details
-
ResourceFontDataInputSource
public ResourceFontDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceManager loader, org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
-
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceFontDataInputSource
-
readFullyAt
- Specified by:
readFullyAtin interfaceFontDataInputSource- Throws:
IOException
-
readAt
Description copied from interface:FontDataInputSourceReads a single byte, returns -1 if the end of the stream as been reached.- Specified by:
readAtin interfaceFontDataInputSource- Returns:
- Throws:
IOException
-
dispose
public void dispose()- Specified by:
disposein interfaceFontDataInputSource
-
getFileName
- Specified by:
getFileNamein interfaceFontDataInputSource
-
equals
- Specified by:
equalsin interfaceFontDataInputSource- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFontDataInputSource- Overrides:
hashCodein classObject
-