public class PrintObjectTransformedInputStream
extends java.io.InputStream
An instance of this class is created using the getTransformedInputStream method from the class SpooledFile.
NOTE: This class is supported on OS/400 V4R4 or later. Not all spooled file formats are supported for transform.
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the number of bytes available (with blocking).
|
void |
close()
Closes the input stream and releases any resources associated with it.
|
boolean |
markSupported()
Returns a boolean indicating whether this stream type supports mark and reset.
|
int |
read()
Reads the next byte of data from this input stream.
|
int |
read(byte[] data)
Reads up to data.length bytes of data from the input
stream into data.
|
int |
read(byte[] data,
int dataOffset,
int length)
Reads up to length bytes of data from this input stream into data,
starting at the array offset dataOffset.
|
long |
skip(long bytesToSkip)
Skips over the next bytesToSkip bytes in the stream.
|
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
- If an error occurs while communicating with the system.public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- If an error occurs while communicating with the system.public int read(byte[] data) throws java.io.IOException
read
in class java.io.InputStream
data
- The buffer into which the data is read.java.io.IOException
- If an error occurs while communicating with the system.public int read(byte[] data, int dataOffset, int length) throws java.io.IOException
read
in class java.io.InputStream
data
- The buffer into which the data is read.dataOffset
- The start offset of the data.length
- The maximum number of bytes to read.java.io.IOException
- If an error occurs while communicating with the system.public long skip(long bytesToSkip) throws java.io.IOException
skip
in class java.io.InputStream
bytesToSkip
- The number of bytes to be skipped.java.io.IOException
- If an error occurs while communicating with the system.