Package org.apache.fop.render.ps.fonts
Class PSTTFTableOutputStream
- java.lang.Object
-
- org.apache.fop.render.ps.fonts.PSTTFTableOutputStream
-
- All Implemented Interfaces:
TTFTableOutputStream
public class PSTTFTableOutputStream extends java.lang.Object implements TTFTableOutputStream
Streams a TrueType table according to the PostScript format.
-
-
Field Summary
Fields Modifier and Type Field Description private PSTTFGeneratorttfGen
-
Constructor Summary
Constructors Constructor Description PSTTFTableOutputStream(PSTTFGenerator ttfGen)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidstreamString(byte[] byteArray, int offset, int length)voidstreamTable(byte[] ttfData, int offset, int size)Streams a table from the given byte array.
-
-
-
Field Detail
-
ttfGen
private PSTTFGenerator ttfGen
-
-
Constructor Detail
-
PSTTFTableOutputStream
public PSTTFTableOutputStream(PSTTFGenerator ttfGen)
Constructor.- Parameters:
ttfGen- the helper object to stream TrueType data
-
-
Method Detail
-
streamTable
public void streamTable(byte[] ttfData, int offset, int size) throws java.io.IOExceptionDescription copied from interface:TTFTableOutputStreamStreams a table from the given byte array.- Specified by:
streamTablein interfaceTTFTableOutputStream- Parameters:
ttfData- the source of the table to stream fromoffset- the position in the byte array where the table startssize- the size of the table in bytes- Throws:
java.io.IOException
-
streamString
private void streamString(byte[] byteArray, int offset, int length) throws java.io.IOException- Throws:
java.io.IOException
-
-