public class RDWInputRecordStream
extends java.lang.Object
For example usage, see the sample class:
com.ibm.jzos.sample.dfsort.DfSortVariableDatasetToJava
| Constructor and Description |
|---|
RDWInputRecordStream(java.io.InputStream is)
Construct an instance of RDWInputRecordStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying InputStream
|
byte[] |
read()
Read the next record and return as a new byte array
|
int |
read(byte[] bytes)
Read the next record into the supplied byte array.
|
int |
read(byte[] bytes,
int offset)
Read the next record into the supplied byte array starting at offset.
|
public RDWInputRecordStream(java.io.InputStream is)
is - the InputStream containing RDW delineated recordspublic void close()
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] bytes)
throws java.io.IOException
bytes - the byte[] to read the record intojava.io.IOException - if the supplied byte[] is too small to hold the record
or if an exception occurs on the underlying InputStreampublic int read(byte[] bytes,
int offset)
throws java.io.IOException
bytes - the byte[] to read the record intojava.io.IOException - if the supplied byte[] is too small to hold the record
or if an exception occurs on the underlying InputStreampublic byte[] read()
throws java.io.IOException
This method creates a new byte array for each record sized to match
the exact record length. For better performance, use read(byte[]).
java.io.IOException - if the supplied byte[] is too small to hold the record
or if an exception occurs on the underlying InputStream