public class FileFontDataInputSource extends java.lang.Object implements FontDataInputSource
Constructor and Description |
---|
FileFontDataInputSource(java.io.File file) |
Modifier and Type | Method and 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) |
public FileFontDataInputSource(java.io.File file) throws java.io.IOException
java.io.IOException
public long getLength()
getLength
in interface FontDataInputSource
public void readFullyAt(long position, byte[] buffer, int length) throws java.io.IOException
readFullyAt
in interface FontDataInputSource
java.io.IOException
public int readAt(long position, byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public int readAt(long position) throws java.io.IOException
FontDataInputSource
readAt
in interface FontDataInputSource
java.io.IOException
public void dispose()
dispose
in interface FontDataInputSource
public java.io.File getFile()
public java.lang.String getFileName()
getFileName
in interface FontDataInputSource
public boolean equals(java.lang.Object o)
equals
in interface FontDataInputSource
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface FontDataInputSource
hashCode
in class java.lang.Object