public class LineDataRecordWriter
extends java.lang.Object
OutputStream| Constructor and Description |
|---|
LineDataRecordWriter(java.io.OutputStream out,
AS400 system)
Constructs a LineDataRecordWriter.
|
LineDataRecordWriter(java.io.OutputStream out,
int ccsid,
AS400 system)
Constructs a LineDataRecordWriter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCcsid()
Gets the CCSID used for this writer.
|
java.lang.String |
getEncoding()
Gets the name of the encoding being used by this LineDataRecordWriter.
|
void |
writeRecord(Record record)
Writes the record data, in line data format, to an OutputStream.
|
public LineDataRecordWriter(java.io.OutputStream out,
AS400 system)
throws java.io.UnsupportedEncodingException
out - An OutputStream.system - The system.java.io.UnsupportedEncodingException - If ccsid is not valid.public LineDataRecordWriter(java.io.OutputStream out,
int ccsid,
AS400 system)
throws java.io.UnsupportedEncodingException
out - An OutputStream.ccsid - The name of the target CCSID to be used.system - The system.java.io.UnsupportedEncodingException - If ccsid is not valid.public int getCcsid()
public java.lang.String getEncoding()
public void writeRecord(Record record) throws java.io.IOException, java.io.UnsupportedEncodingException, ExtendedIllegalStateException
record - The record to be converted to line data.java.io.IOException - If an error occurs while communicating
with the AS/400.java.io.UnsupportedEncodingException - If ccsid is not valid.ExtendedIllegalStateException - If a state is illegal.Record