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 TypeMethodDescriptionvoid
dispose()
boolean
equals
(java.lang.Object o) java.lang.String
long
int
hashCode()
int
readAt
(long position) Reads a single byte, returns -1 if the end of the stream as been reached.void
readFullyAt
(long position, byte[] buffer, int length) Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
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:
getLength
in interfaceFontDataInputSource
-
readFullyAt
public void readFullyAt(long position, byte[] buffer, int length) throws java.io.IOException - Specified by:
readFullyAt
in interfaceFontDataInputSource
- 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 interfaceFontDataInputSource
- Returns:
- Throws:
java.io.IOException
-
dispose
public void dispose()- Specified by:
dispose
in interfaceFontDataInputSource
-
getFileName
public java.lang.String getFileName()- Specified by:
getFileName
in interfaceFontDataInputSource
-
equals
public boolean equals(java.lang.Object o) - Specified by:
equals
in interfaceFontDataInputSource
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceFontDataInputSource
- Overrides:
hashCode
in classjava.lang.Object
-