|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.LineDataRecordWriter
public class LineDataRecordWriter extends Object
The LineDataRecordWriter class writes a record in line data format (with the name of the record format inserted into positions 1-10 of the line data), translating characters into bytes of the specified CCSID. The line data is written to an OutputStream.
OutputStream| Constructor and Description |
|---|
LineDataRecordWriter(OutputStream out,
AS400 system)
Constructs a LineDataRecordWriter. |
LineDataRecordWriter(OutputStream out,
int ccsid,
AS400 system)
Constructs a LineDataRecordWriter. |
| Modifier and Type | Method and 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 ExtendedIllegalStateExceptionRecord
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||