org.apache.fop.fonts.type1

Class 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.

Constructor Summary

PFMInputStream(InputStream in)
Constructs a PFMInputStream based on an InputStream representing the PFM file.

Method Summary

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.

Constructor Details

PFMInputStream

public PFMInputStream(InputStream in)
Constructs a PFMInputStream based on an InputStream representing the PFM file.
Parameters:
in - The stream from which to read the PFM file

Method Details

readByte

public short readByte()
            throws IOException
Parses a one byte value out of the stream.
Returns:
The value extracted

readInt

public long readInt()
            throws IOException
Parses a four byte value out of the stream.
Returns:
The value extracted

readShort

public int readShort()
            throws IOException
Parses a two byte value out of the stream.
Returns:
The value extracted

readString

public String readString()
            throws IOException
Parses a zero-terminated string out of the stream.
Returns:
The value extracted

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.