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 voidclose()longgetCurrentOffset()byte[]getDigest()booleanisValidOffset(long offset)booleanisValidOffset(long offset, long length)static intnumFis()intread()intread(byte[] b)intread(byte[] b, int off, int len)longskipTo(long offset)voidunread(byte[] b)voidunread(byte[] b, int off, int len)voidunread(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.IOExceptionInvalidFontException
-
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
-
-