org.jSyncManager.API.Protocol.Util
Class DLPRecordWriter
Writerorg.jSyncManager.API.Protocol.Util.DLPRecordWriter
public class DLPRecordWriter
extends Writer
A convenience class for writing a DLPRecord to an OutputStreamWriter stream or Writer stream.
DLPRecord, java.io.Writer, java.io.OutputStreamWriter
DLPRecordWriter()- Creates a new instance of DLPRecordWriter.
|
DLPRecordWriter(OutputStreamWriter out)- Creates a new instance of DLPRecordWriter from an OutputStreamWriter instance.
|
DLPRecordWriter(DLPRecord dlprec, OutputStreamWriter out)- Creates a new instance of DLPRecordWriter using the given DLPRecord and
OutputStreamWriter instance.
|
void | close()- Close the Writer stream.
|
void | flush()- Flush the Writer stream.
|
java.io.OutputStreamWriter | getOs()- Getter for property OutputStreamWriter os.
|
DLPRecord | getRecord()- Getter for property dlprecord.
|
void | setOs(java.io.OutputStreamWriter os)- Setter for property OutputStreamWriter os.
|
void | setRecord(DLPRecord dlprecord)- Setter for property dlprecord.
|
String | toString()- Create a String representation of the class
|
void | write(String buff)- Write a String to the output stream.
|
void | write(StringBuffer buff)- Write a StringBuffer to the output stream.
|
void | write(char[] values)
|
void | write(char[] values, int offset, int length)- Write a portion of an array of characters.
|
void | write(int param)
|
DLPRecordWriter
public DLPRecordWriter()
Creates a new instance of DLPRecordWriter.
DLPRecordWriter
public DLPRecordWriter(OutputStreamWriter out)
Creates a new instance of DLPRecordWriter from an OutputStreamWriter instance.
out - OutputStreamWriter to be written to.
DLPRecordWriter
public DLPRecordWriter(DLPRecord dlprec,
OutputStreamWriter out)Creates a new instance of DLPRecordWriter using the given DLPRecord and
OutputStreamWriter instance.
dlprec - DLPRecord to be written.out - OutputStreamWriter to be written to.
close
public void close()
throws java.io.IOExceptionClose the Writer stream.
flush
public void flush()
throws java.io.IOExceptionFlush the Writer stream.
getOs
public java.io.OutputStreamWriter getOs()
Getter for property OutputStreamWriter os.
- OutputStreamWriter Value of property os.
getRecord
public DLPRecord getRecord()
Getter for property dlprecord.
- Value of property dlprecord.
setOs
public void setOs(java.io.OutputStreamWriter os)
Setter for property OutputStreamWriter os.
os - New OutputStreamWriter value of property os.
setRecord
public void setRecord(DLPRecord dlprecord)
throws java.io.IOExceptionSetter for property dlprecord.
dlprecord - New value of property dlprecord.
toString
public String toString()
Create a String representation of the class
- String String representation
write
public void write(String buff)
throws java.io.IOExceptionWrite a String to the output stream.
buff - String to be written.
write
public void write(StringBuffer buff)
throws java.io.IOExceptionWrite a StringBuffer to the output stream.
buff - StringBuffer to be written.
write
public void write(char[] values)
throws java.io.IOException
write
public void write(char[] values,
int offset,
int length)
throws java.io.IOExceptionWrite a portion of an array of characters.
values - Array of charactersoffset - Offset from which to start writing characterslength - Number of characters to write
write
public void write(int param)
throws java.io.IOException