public class PFMInputStream
extends java.io.FilterInputStream
Constructor | Description |
---|---|
PFMInputStream(java.io.InputStream in) |
Constructs a PFMInputStream based on an InputStream representing the
PFM file.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
java.lang.String |
readString() |
Parses a zero-terminated string out of the stream.
|
public PFMInputStream(java.io.InputStream in)
in
- The stream from which to read the PFM filepublic short readByte() throws java.io.IOException
java.io.IOException
- In case of an I/O problempublic int readShort() throws java.io.IOException
java.io.IOException
- In case of an I/O problempublic long readInt() throws java.io.IOException
java.io.IOException
- In case of an I/O problempublic java.lang.String readString() throws java.io.IOException
java.io.IOException
- In case of an I/O problemCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.