FreeHEP API
Version current

org.freehep.graphicsio.font.truetype
Class TTFFileInput

java.lang.Object
  extended byorg.freehep.graphicsio.font.truetype.TTFInput
      extended byorg.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
Source Code:
TTFFileInput.java

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
Throws:
IOException

readByte

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

readRawByte

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

readShort

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

readUShort

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

readLong

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

readULong

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

readChar

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

readFully

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

toString

public String toString()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.