Package org.apache.fop.fonts.cff
Class FOPCFFDataInput
- java.lang.Object
-
- org.apache.fontbox.cff.DataInputByteArray
-
- org.apache.fop.fonts.cff.FOPCFFDataInput
-
- All Implemented Interfaces:
org.apache.fontbox.cff.DataInput
public class FOPCFFDataInput extends org.apache.fontbox.cff.DataInputByteArray
-
-
Field Summary
Fields Modifier and Type Field Description private intbufferPositionprivate byte[]inputBuffer
-
Constructor Summary
Constructors Constructor Description FOPCFFDataInput(byte[] buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPosition()booleanhasRemaining()intlength()intpeekUnsignedByte(int offset)bytereadByte()byte[]readBytes(int length)intreadUnsignedByte()voidsetPosition(int position)
-
-
-
Method Detail
-
hasRemaining
public boolean hasRemaining() throws java.io.IOException- Specified by:
hasRemainingin interfaceorg.apache.fontbox.cff.DataInput- Overrides:
hasRemainingin classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceorg.apache.fontbox.cff.DataInput- Overrides:
getPositionin classorg.apache.fontbox.cff.DataInputByteArray
-
setPosition
public void setPosition(int position) throws java.io.IOException- Specified by:
setPositionin interfaceorg.apache.fontbox.cff.DataInput- Overrides:
setPositionin classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Specified by:
readBytein interfaceorg.apache.fontbox.cff.DataInput- Overrides:
readBytein classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
readUnsignedByte
public int readUnsignedByte() throws java.io.IOException- Specified by:
readUnsignedBytein interfaceorg.apache.fontbox.cff.DataInput- Overrides:
readUnsignedBytein classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
peekUnsignedByte
public int peekUnsignedByte(int offset) throws java.io.IOException- Specified by:
peekUnsignedBytein interfaceorg.apache.fontbox.cff.DataInput- Overrides:
peekUnsignedBytein classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
readBytes
public byte[] readBytes(int length) throws java.io.IOException- Specified by:
readBytesin interfaceorg.apache.fontbox.cff.DataInput- Overrides:
readBytesin classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
length
public int length() throws java.io.IOException- Specified by:
lengthin interfaceorg.apache.fontbox.cff.DataInput- Overrides:
lengthin classorg.apache.fontbox.cff.DataInputByteArray- Throws:
java.io.IOException
-
-