javatools.filehandlers
Class SimpleOutputStreamWriter

java.lang.Object
  extended by java.io.Writer
      extended by javatools.filehandlers.SimpleOutputStreamWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class SimpleOutputStreamWriter
extends java.io.Writer

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). A SimpleOutputStreamWriter writes the characters directly as bytes to an output stream -- regardless of the encoding. See SimpleInputStreamReader for an explanation.


Field Summary
 java.io.OutputStream out
          Holds the underlying OutputStrema
 
Constructor Summary
SimpleOutputStreamWriter(java.io.File f)
           
SimpleOutputStreamWriter(java.io.OutputStream o)
           
SimpleOutputStreamWriter(java.lang.String s)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public java.io.OutputStream out
Holds the underlying OutputStrema

Constructor Detail

SimpleOutputStreamWriter

public SimpleOutputStreamWriter(java.io.OutputStream o)

SimpleOutputStreamWriter

public SimpleOutputStreamWriter(java.io.File f)
                         throws java.io.IOException
Throws:
java.io.IOException

SimpleOutputStreamWriter

public SimpleOutputStreamWriter(java.lang.String s)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

write

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