jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPRecordWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--org.jSyncManager.API.Protocol.Util.DLPRecordWriter

public class DLPRecordWriter
extends java.io.Writer

A convenience class for writing a DLPRecord to an OutputStreamWriter stream or Writer stream.

Version:
$Revision: 1.5 $
Author:
David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/08 04:34:21 $.
See Also:
DLPRecord, Writer, OutputStreamWriter

Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DLPRecordWriter()
          Creates a new instance of DLPRecordWriter.
DLPRecordWriter(DLPRecord dlprec, java.io.OutputStreamWriter out)
          Creates a new instance of DLPRecordWriter using the given DLPRecord and OutputStreamWriter instance.
DLPRecordWriter(java.io.OutputStreamWriter out)
          Creates a new instance of DLPRecordWriter from an OutputStreamWriter instance.
 
Method Summary
 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.
 java.lang.String toString()
          Create a String representation of the class
 void write(char[] values)
           
 void write(char[] values, int offset, int length)
          Write a portion of an array of characters.
 void write(int param)
           
 void write(java.lang.String buff)
          Write a String to the output stream.
 void write(java.lang.StringBuffer buff)
          Write a StringBuffer to the output stream.
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLPRecordWriter

public DLPRecordWriter()
Creates a new instance of DLPRecordWriter.

DLPRecordWriter

public DLPRecordWriter(java.io.OutputStreamWriter out)
Creates a new instance of DLPRecordWriter from an OutputStreamWriter instance.
Parameters:
out - OutputStreamWriter to be written to.

DLPRecordWriter

public DLPRecordWriter(DLPRecord dlprec,
                       java.io.OutputStreamWriter out)
Creates a new instance of DLPRecordWriter using the given DLPRecord and OutputStreamWriter instance.
Parameters:
dlprec - DLPRecord to be written.
out - OutputStreamWriter to be written to.
Method Detail

close

public void close()
           throws java.io.IOException
Close the Writer stream.
Overrides:
close in class java.io.Writer
Throws:
java.io.IOException -  

flush

public void flush()
           throws java.io.IOException
Flush the Writer stream.
Overrides:
flush in class java.io.Writer
Throws:
java.io.IOException -  

toString

public java.lang.String toString()
Create a String representation of the class
Overrides:
toString in class java.lang.Object
Returns:
String String representation

write

public void write(char[] values)
           throws java.io.IOException
Overrides:
write in class java.io.Writer

write

public void write(int param)
           throws java.io.IOException
Overrides:
write in class java.io.Writer

write

public void write(char[] values,
                  int offset,
                  int length)
           throws java.io.IOException
Write a portion of an array of characters.
Overrides:
write in class java.io.Writer
Parameters:
cbuf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
java.io.IOException - If an I/O error occurs

write

public void write(java.lang.StringBuffer buff)
           throws java.io.IOException
Write a StringBuffer to the output stream.
Parameters:
buff - StringBuffer to be written.
Throws:
java.io.IOException - If an I/O error occurs

write

public void write(java.lang.String buff)
           throws java.io.IOException
Write a String to the output stream.
Overrides:
write in class java.io.Writer
Parameters:
buff - String to be written.
Throws:
java.io.IOException - If an I/O error occurs

getRecord

public DLPRecord getRecord()
Getter for property dlprecord.
Returns:
Value of property dlprecord.

setRecord

public void setRecord(DLPRecord dlprecord)
               throws java.io.IOException
Setter for property dlprecord.
Parameters:
dlprecord - New value of property dlprecord.

getOs

public java.io.OutputStreamWriter getOs()
Getter for property OutputStreamWriter os.
Returns:
OutputStreamWriter Value of property os.

setOs

public void setOs(java.io.OutputStreamWriter os)
Setter for property OutputStreamWriter os.
Parameters:
os - New OutputStreamWriter value of property os.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.