Package com.adobe.fontengine.font
Class FontInputStream
- java.lang.Object
-
- com.adobe.fontengine.font.FontInputStream
-
public class FontInputStream extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FontInputStream(FontInputStream in)
FontInputStream(java.io.InputStream in)
FontInputStream(java.io.InputStream in, long size)
FontInputStream(java.net.URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getCurrentOffset()
byte[]
getDigest()
boolean
isValidOffset(long offset)
boolean
isValidOffset(long offset, long length)
static int
numFis()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
long
skipTo(long offset)
void
unread(byte[] b)
void
unread(byte[] b, int off, int len)
void
unread(int b)
-
-
-
Constructor Detail
-
FontInputStream
public FontInputStream(FontInputStream in)
-
FontInputStream
public FontInputStream(java.io.InputStream in)
-
FontInputStream
public FontInputStream(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
FontInputStream
public FontInputStream(java.io.InputStream in, long size)
-
-
Method Detail
-
numFis
public static int numFis()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
isValidOffset
public boolean isValidOffset(long offset, long length)
-
isValidOffset
public boolean isValidOffset(long offset)
-
getCurrentOffset
public long getCurrentOffset()
-
skipTo
public long skipTo(long offset) throws java.io.IOException, InvalidFontException
- Throws:
java.io.IOException
InvalidFontException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Throws:
java.io.IOException
-
unread
public void unread(int b) throws java.io.IOException
- Throws:
java.io.IOException
-
unread
public void unread(byte[] b, int off, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
unread
public void unread(byte[] b) throws java.io.IOException
- Throws:
java.io.IOException
-
getDigest
public byte[] getDigest() throws java.io.IOException
- Throws:
java.io.IOException
-
-