Package org.docx4j.fonts.fop.fonts.type1
Class PostscriptParser.PSFixedArray
java.lang.Object
org.docx4j.fonts.fop.fonts.type1.PostscriptParser.PSElement
org.docx4j.fonts.fop.fonts.type1.PostscriptParser.PSFixedArray
- Enclosing class:
- PostscriptParser
public class PostscriptParser.PSFixedArray extends PostscriptParser.PSElement
An object representing a Postscript array with a fixed number of entries
-
Field Summary
Fields Modifier and Type Field Description protected intbinaryLengthFields inherited from class org.docx4j.fonts.fop.fonts.type1.PostscriptParser.PSElement
binaryEntries, endPoint, hasMore, operator, readBinary, tokens -
Constructor Summary
Constructors Constructor Description PSFixedArray(java.lang.String operator, int startPoint) -
Method Summary
Modifier and Type Method Description java.util.HashMap<java.lang.Integer,java.lang.String>getEntries()Gets a map of array entries identified by indexvoidparseByte(byte cur, int pos)Passes responsibility for processing the byte stream to the PostScript objectvoidparseToken(java.lang.String token, int curPos)Delegates the parse routine to a sub classMethods inherited from class org.docx4j.fonts.fop.fonts.type1.PostscriptParser.PSElement
getBinaryEntries, getBinaryEntryByIndex, getEndPoint, getFoundUnexpected, getOperator, getStartPoint, hasMore, isInteger, parse, setFoundUnexpectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
binaryLength
protected int binaryLength
-
-
Constructor Details
-
PSFixedArray
public PSFixedArray(java.lang.String operator, int startPoint)
-
-
Method Details
-
parseToken
public void parseToken(java.lang.String token, int curPos)Description copied from class:PostscriptParser.PSElementDelegates the parse routine to a sub class- Specified by:
parseTokenin classPostscriptParser.PSElement- Parameters:
token- The token which to parse
-
getEntries
public java.util.HashMap<java.lang.Integer,java.lang.String> getEntries()Gets a map of array entries identified by index- Returns:
- Returns the map of array entries
-
parseByte
public void parseByte(byte cur, int pos)Description copied from class:PostscriptParser.PSElementPasses responsibility for processing the byte stream to the PostScript object- Specified by:
parseBytein classPostscriptParser.PSElement- Parameters:
cur- The byte currently being readpos- The position of the given byte
-