public class PFBData
extends java.lang.Object
PFBParser
Modifier and Type | Field | Description |
---|---|---|
static int |
PFB_MAC |
MAC Format (unsupported, yet)
|
static int |
PFB_PC |
PC format
|
static int |
PFB_RAW |
Raw format, no special file structure
|
Constructor | Description |
---|---|
PFBData() |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getEncryptedSegment() |
Gets the encrypted segment of the font file
|
byte[] |
getHeaderSegment() |
Gets the header segment of the font file
|
int |
getLength() |
Returns the full length of the raw font file.
|
int |
getLength1() |
Returns the Length1 (length of the header segment).
|
int |
getLength2() |
Returns the Length2 (length of the encrypted segment).
|
int |
getLength3() |
Returns the Length3 (length of the trailer segment).
|
int |
getPFBFormat() |
Returns the format the font was loaded with.
|
byte[] |
getTrailerSegment() |
Gets the trailer segment of the font file
|
void |
outputAllParts(java.io.OutputStream out) |
Writes the PFB file in raw format to an OutputStream.
|
void |
setEncryptedSegment(byte[] encryptedSeg) |
Sets the encrypted segment of the font file.
|
void |
setHeaderSegment(byte[] headerSeg) |
Sets the header segment of the font file.
|
void |
setPFBFormat(int format) |
Sets the PFB format the font was loaded with.
|
void |
setTrailerSegment(byte[] trailerSeg) |
Sets the trailer segment of the font file.
|
java.lang.String |
toString() |
public static final int PFB_RAW
public static final int PFB_PC
public static final int PFB_MAC
public void setPFBFormat(int format)
format
- one of the PFB_* constantspublic int getPFBFormat()
public void setHeaderSegment(byte[] headerSeg)
headerSeg
- the header segmentpublic byte[] getHeaderSegment()
public void setEncryptedSegment(byte[] encryptedSeg)
encryptedSeg
- the encrypted segmentpublic byte[] getEncryptedSegment()
public void setTrailerSegment(byte[] trailerSeg)
trailerSeg
- the trailer segmentpublic byte[] getTrailerSegment()
public int getLength()
public int getLength1()
public int getLength2()
public int getLength3()
public void outputAllParts(java.io.OutputStream out) throws java.io.IOException
out
- the OutputStream to write tojava.io.IOException
- In case of an I/O problempublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.