public class LineDataRecordWriter extends Object
OutputStream
Constructor | Description |
---|---|
LineDataRecordWriter(OutputStream out,
int ccsid,
AS400 system) |
Constructs a LineDataRecordWriter.
|
LineDataRecordWriter(OutputStream out,
AS400 system) |
Constructs a LineDataRecordWriter.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getCcsid() |
Gets the CCSID used for this writer.
|
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(OutputStream out, AS400 system) throws UnsupportedEncodingException
out
- An OutputStream.system
- The system.UnsupportedEncodingException
- If ccsid is not valid.public LineDataRecordWriter(OutputStream out, int ccsid, AS400 system) throws UnsupportedEncodingException
out
- An OutputStream.ccsid
- The name of the target CCSID to be used.system
- The system.UnsupportedEncodingException
- If ccsid is not valid.public int getCcsid()
public String getEncoding()
public void writeRecord(Record record) throws IOException, UnsupportedEncodingException, ExtendedIllegalStateException
record
- The record to be converted to line data.IOException
- If an error occurs while communicating
with the AS/400.UnsupportedEncodingException
- If ccsid is not valid.ExtendedIllegalStateException
- If a state is illegal.Record
Copyright © 2024. All rights reserved.