jd.io
Class OutputStreamWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjd.io.OutputStreamWriter

public class OutputStreamWriter
extends Writer

An OutputStreamWriter like java.io.OutputStreamWriter but with the possibility to provide a custom CharToByteConverter.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
OutputStreamWriter(OutputStream out, CharToByteConverter ctb)
           
 
Method Summary
 void close()
           
 void flush()
           
(package private)  void flushBuffer()
           
 String getEncoding()
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriter

public OutputStreamWriter(OutputStream out,
                          CharToByteConverter ctb)
Method Detail

getEncoding

public String getEncoding()

write

public void write(int c)
           throws IOException
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

flushBuffer

void flushBuffer()
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException