Save This Page
Home » pdfbox-1.1.0-src » org.apache.fontbox.cff » [javadoc | source]
org.apache.fontbox.cff
public class: DataInput [javadoc | source]
java.lang.Object
   org.apache.fontbox.cff.DataInput

Direct Known Subclasses:
    CFFDataInput

This class contains some functionality to read a byte buffer.
Constructor:
 public DataInput(byte[] buffer) 
Method from org.apache.fontbox.cff.DataInput Summary:
getPosition,   getString,   hasRemaining,   readByte,   readBytes,   readInt,   readShort,   readUnsignedByte,   readUnsignedShort,   setPosition
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.fontbox.cff.DataInput Detail:
 public int getPosition() 
    Returns the current position.
 public String getString() throws IOException 
    Returns the buffer as an ISO-8859-1 string.
 public boolean hasRemaining() 
    Determines if there are any bytes left to read or not.
 public byte readByte() throws IOException 
    Read one single byte from the buffer.
 public byte[] readBytes(int length) throws IOException 
    Read a number of single byte values from the buffer.
 public int readInt() throws IOException 
    Read one single int (4 bytes) from the buffer.
 public short readShort() throws IOException 
    Read one single short value from the buffer.
 public int readUnsignedByte() throws IOException 
    Read one single unsigned byte from the buffer.
 public int readUnsignedShort() throws IOException 
    Read one single unsigned short (2 bytes) value from the buffer.
 public  void setPosition(int position) 
    Sets the current position to the given value.