Package org.apache.fontbox.ttf
Class CFFTable.CFFBytesource
- java.lang.Object
-
- org.apache.fontbox.ttf.CFFTable.CFFBytesource
-
- All Implemented Interfaces:
CFFParser.ByteSource
- Enclosing class:
- CFFTable
private static class CFFTable.CFFBytesource extends java.lang.Object implements CFFParser.ByteSource
Allows bytes to be re-read later by CFFParser.
-
-
Field Summary
Fields Modifier and Type Field Description private TrueTypeFontttf
-
Constructor Summary
Constructors Constructor Description CFFBytesource(TrueTypeFont ttf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Returns the source bytes.
-
-
-
Field Detail
-
ttf
private final TrueTypeFont ttf
-
-
Constructor Detail
-
CFFBytesource
CFFBytesource(TrueTypeFont ttf)
-
-
Method Detail
-
getBytes
public byte[] getBytes() throws java.io.IOExceptionDescription copied from interface:CFFParser.ByteSourceReturns the source bytes. May be called more than once.- Specified by:
getBytesin interfaceCFFParser.ByteSource- Returns:
- the source data as byte array
- Throws:
java.io.IOException- if the data could not be read
-
-