net.sourceforge.jtds.util
Class WriterOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--net.sourceforge.jtds.util.WriterOutputStream

public class WriterOutputStream
extends java.io.OutputStream

Provides the opposite functionality of OutputStreamWriter.

Version:
$Id: WriterOutputStream.java,v 1.4 2004/08/24 19:17:07 bheineman Exp $
Author:
Brian Heineman

Field Summary
protected  java.lang.String _encoding
           
private  byte[] _singleByte
           
protected  java.io.Writer _writer
           
 
Constructor Summary
WriterOutputStream(java.io.Writer writer)
          Constructs a new WriterOutputStream for the specified writer.
WriterOutputStream(java.io.Writer writer, java.lang.String encoding)
          Constructs a new WriterOutputStream for the specified writer.
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_writer

protected java.io.Writer _writer

_encoding

protected java.lang.String _encoding

_singleByte

private byte[] _singleByte
Constructor Detail

WriterOutputStream

public WriterOutputStream(java.io.Writer writer)
Constructs a new WriterOutputStream for the specified writer.
Parameters:
writer -  

WriterOutputStream

public WriterOutputStream(java.io.Writer writer,
                          java.lang.String encoding)
Constructs a new WriterOutputStream for the specified writer.
Parameters:
writer -  
encoding -  
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream


Generated on April 15 2005