org.freehep.graphicsio.font.truetype
Class TTFFileInput

java.lang.Object
  extended by org.freehep.graphicsio.font.truetype.TTFInput
      extended by org.freehep.graphicsio.font.truetype.TTFFileInput

public class TTFFileInput
extends TTFInput

Concrete implementation of the TrueType Input for one Table, read from a TTF File. Reads one table from the file.

Version:
$Id: TTFFileInput.java 8584 2006-08-10 23:06:37Z duns $
Author:
Simon Fischer

Constructor Summary
TTFFileInput(java.io.RandomAccessFile file, long offset, long length, long checksum)
           
 
Method Summary
 int readByte()
           
 byte readChar()
           
 void readFully(byte[] b)
           
 int readLong()
           
 int readRawByte()
           
 short readShort()
           
 long readULong()
           
 int readUShort()
           
 void seek(long offset)
           
 java.lang.String toString()
           
 
Methods inherited from class org.freehep.graphicsio.font.truetype.TTFInput
checkShortZero, checkZeroBit, flagBit, flagBit, popPos, pushPos, readByteFlags, readF2Dot14, readFFFFTerminatedUShortArray, readFixed, readFWord, readShortArray, readUFWord, readUShortArray, readUShortFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TTFFileInput

public TTFFileInput(java.io.RandomAccessFile file,
                    long offset,
                    long length,
                    long checksum)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

seek

public void seek(long offset)
          throws java.io.IOException
Specified by:
seek in class TTFInput
Throws:
java.io.IOException

readByte

public int readByte()
             throws java.io.IOException
Specified by:
readByte in class TTFInput
Throws:
java.io.IOException

readRawByte

public int readRawByte()
                throws java.io.IOException
Specified by:
readRawByte in class TTFInput
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Specified by:
readShort in class TTFInput
Throws:
java.io.IOException

readUShort

public int readUShort()
               throws java.io.IOException
Specified by:
readUShort in class TTFInput
Throws:
java.io.IOException

readLong

public int readLong()
             throws java.io.IOException
Specified by:
readLong in class TTFInput
Throws:
java.io.IOException

readULong

public long readULong()
               throws java.io.IOException
Specified by:
readULong in class TTFInput
Throws:
java.io.IOException

readChar

public byte readChar()
              throws java.io.IOException
Specified by:
readChar in class TTFInput
Throws:
java.io.IOException

readFully

public void readFully(byte[] b)
               throws java.io.IOException
Specified by:
readFully in class TTFInput
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2007 FreeHEP. All Rights Reserved.