ucar.nc2.util
Class UnsynchronizedBufferedWriter

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

public class UnsynchronizedBufferedWriter
extends Writer

An unsynchronized version of a BufferedWriter, for performance.

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

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

Constructor Detail

UnsynchronizedBufferedWriter

public UnsynchronizedBufferedWriter(Writer out)
Method Detail

write

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

write

public void write(Reader reader)
           throws IOException
Throws:
IOException

write

public void write(String s)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String s,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

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

flush

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

close

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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.