org.apache.fop.fonts.type1
Class PFMInputStream
java.io.FilterInputStreamorg.apache.fop.fonts.type1.PFMInputStream
public class PFMInputStream
extends java.io.FilterInputStream
This is a helper class for reading PFM files. It defines functions for
extracting specific values out of the stream.
PFMInputStream(InputStream in)- Constructs a PFMInputStream based on an InputStream representing the
PFM file.
|
short | readByte()- Parses a one byte value out of the stream.
|
long | readInt()- Parses a four byte value out of the stream.
|
int | readShort()- Parses a two byte value out of the stream.
|
String | readString()- Parses a zero-terminated string out of the stream.
|
PFMInputStream
public PFMInputStream(InputStream in)
Constructs a PFMInputStream based on an InputStream representing the
PFM file.
in - The stream from which to read the PFM file
readByte
public short readByte()
throws IOException Parses a one byte value out of the stream.
readInt
public long readInt()
throws IOException Parses a four byte value out of the stream.
readShort
public int readShort()
throws IOException Parses a two byte value out of the stream.
readString
public String readString()
throws IOException Parses a zero-terminated string out of the stream.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.