FreeHEP API
Version v1.1

org.freehep.graphicsio.font.truetype
Class TTFFileInput

java.lang.Object
  |
  +--org.freehep.graphicsio.font.truetype.TTFInput
        |
        +--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,v 1.1 2001/11/29 01:45:29 duns Exp $
Author:
Simon Fischer

Constructor Summary
TTFFileInput(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)
           
 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(RandomAccessFile file,
                    long offset,
                    long length,
                    long checksum)
             throws IOException
Method Detail

seek

public void seek(long offset)
          throws IOException
Specified by:
seek in class TTFInput
IOException

readByte

public int readByte()
             throws IOException
Specified by:
readByte in class TTFInput
IOException

readRawByte

public int readRawByte()
                throws IOException
Specified by:
readRawByte in class TTFInput
IOException

readShort

public short readShort()
                throws IOException
Specified by:
readShort in class TTFInput
IOException

readUShort

public int readUShort()
               throws IOException
Specified by:
readUShort in class TTFInput
IOException

readLong

public int readLong()
             throws IOException
Specified by:
readLong in class TTFInput
IOException

readULong

public long readULong()
               throws IOException
Specified by:
readULong in class TTFInput
IOException

readChar

public byte readChar()
              throws IOException
Specified by:
readChar in class TTFInput
IOException

readFully

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

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.