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