|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream com.ibm.as400.access.PrintObjectTransformedInputStream
public class PrintObjectTransformedInputStream extends InputStream
The PrintObjectTransformedInputStream class is used to read transformed data from a system spooled file. The type of transform to be performed on the data is dependent on the PrintParameterList used to create an instance of the class.
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. |
Methods inherited from class java.io.InputStream |
---|
mark, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
- If an error occurs while communicating with the system.public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
- If an error occurs while communicating with the system.public int read(byte[] data) throws IOException
read
in class InputStream
data
- The buffer into which the data is read.IOException
- If an error occurs while communicating with the system.public int read(byte[] data, int dataOffset, int length) throws IOException
read
in class 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.IOException
- If an error occurs while communicating with the system.public long skip(long bytesToSkip) throws IOException
skip
in class InputStream
bytesToSkip
- The number of bytes to be skipped.IOException
- If an error occurs while communicating with the system.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |