Package org.apache.fop.fonts.type1
Class PFMInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.fop.fonts.type1.PFMInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
This is a helper class for reading PFM files. It defines functions for
extracting specific values out of the stream.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionConstructs a PFMInputStream based on an InputStream representing the PFM file. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
PFMInputStream
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
Parses a one byte value out of the stream.- Returns:
- The value extracted
- Throws:
IOException
- In case of an I/O problem
-
readShort
Parses a two byte value out of the stream.- Returns:
- The value extracted
- Throws:
IOException
- In case of an I/O problem
-
readInt
Parses a four byte value out of the stream.- Returns:
- The value extracted
- Throws:
IOException
- In case of an I/O problem
-
readString
Parses a zero-terminated string out of the stream.- Returns:
- The value extracted
- Throws:
IOException
- In case of an I/O problem
-