Package org.apache.fop.fonts.type1
Class PostscriptParser
- java.lang.Object
-
- org.apache.fop.fonts.type1.PostscriptParser
-
public class PostscriptParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PostscriptParser.PSDictionary
An object representing a Postscript dictionaryclass
PostscriptParser.PSElement
A base Postscript element classclass
PostscriptParser.PSFixedArray
An object representing a Postscript array with a fixed number of entriesclass
PostscriptParser.PSSubroutine
An object representing a Postscript subroutine elementclass
PostscriptParser.PSVariable
An object representing a Postscript variableclass
PostscriptParser.PSVariableArray
An object representing a Postscript array with a variable number of entries
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
LOG
-
Constructor Summary
Constructors Constructor Description PostscriptParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostscriptParser.PSElement
createElement(java.lang.String operator, java.lang.String elementID, int startPoint)
java.util.List<PostscriptParser.PSElement>
parse(byte[] segment)
Parses the postscript document and returns a list of elements
-
-
-
Method Detail
-
parse
public java.util.List<PostscriptParser.PSElement> parse(byte[] segment) throws java.io.IOException
Parses the postscript document and returns a list of elements- Parameters:
segment
- The byte array containing the postscript data- Returns:
- A list of found Postscript elements
- Throws:
java.io.IOException
-
createElement
public PostscriptParser.PSElement createElement(java.lang.String operator, java.lang.String elementID, int startPoint)
-
-