|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ibm.as400.access.LineDataRecordWriter
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 Summary | |
LineDataRecordWriter(java.io.OutputStream out,
AS400 system)
Constructs a LineDataRecordWriter. |
|
LineDataRecordWriter(java.io.OutputStream out,
int ccsid,
AS400 system)
Constructs a LineDataRecordWriter. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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.| Method Detail |
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 ExtendedIllegalStateExceptionRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||