Package org.docx4j.fonts.fop.fonts.type1
Class PostscriptParser
java.lang.Object
org.docx4j.fonts.fop.fonts.type1.PostscriptParser
public class PostscriptParser
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPostscriptParser.PSDictionaryAn object representing a Postscript dictionaryclassPostscriptParser.PSElementA base Postscript element classclassPostscriptParser.PSFixedArrayAn object representing a Postscript array with a fixed number of entriesclassPostscriptParser.PSSubroutineAn object representing a Postscript subroutine elementclassPostscriptParser.PSVariableAn object representing a Postscript variableclassPostscriptParser.PSVariableArrayAn object representing a Postscript array with a variable number of entries -
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog -
Constructor Summary
Constructors Constructor Description PostscriptParser() -
Method Summary
Modifier and Type Method Description PostscriptParser.PSElementcreateElement(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 elementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
PostscriptParser
public PostscriptParser()
-
-
Method Details
-
parse
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)
-