ucar.nc2.util
Class UnsynchronizedBufferedWriter

java.lang.Object
  extended by java.io.Writer
      extended by ucar.nc2.util.UnsynchronizedBufferedWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class UnsynchronizedBufferedWriter
extends java.io.Writer

An unsynchronized version of a BufferedWriter, for performance.

Since:
Nov 4, 2007
Author:
com.elharo.io

Constructor Summary
UnsynchronizedBufferedWriter(java.io.Writer out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] text, int offset, int length)
           
 void write(int c)
           
 void write(java.io.Reader reader)
           
 void write(java.lang.String s)
           
 void write(java.lang.String s, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsynchronizedBufferedWriter

public UnsynchronizedBufferedWriter(java.io.Writer out)
Method Detail

write

public void write(char[] text,
                  int offset,
                  int length)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.io.Reader reader)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String s)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String s,
                  int offset,
                  int length)
           throws java.io.IOException
Overrides:
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

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

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