org.melati.util
Class MelatiBufferedWriter

Package class diagram package MelatiBufferedWriter
java.lang.Object
  extended by java.io.Writer
      extended by org.melati.util.MelatiWriter
          extended by org.melati.util.MelatiBufferedWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class MelatiBufferedWriter
extends MelatiWriter

A buffered output object for Melati.


Field Summary
 
Fields inherited from class org.melati.util.MelatiWriter
flush, out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MelatiBufferedWriter(Writer writer)
          Constructor.
 
Method Summary
 void close()
          
 void flush()
          
 void reset()
          Do nothing in the unbuffered case.
 void write(char[] cbuf, int off, int len)
          
 
Methods inherited from class org.melati.util.MelatiWriter
getWriter, setFlushingOn, startFlushing, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MelatiBufferedWriter

public MelatiBufferedWriter(Writer writer)
Constructor.

Parameters:
writer - the Writer
Method Detail

write

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

Overrides:
write in class MelatiWriter
Throws:
IOException
See Also:
Writer.write(char[], int, int)

reset

public void reset()
           throws IOException
Do nothing in the unbuffered case.

Overrides:
reset in class MelatiWriter
Throws:
IOException - in some implementations
See Also:
MelatiWriter.reset()

flush

public void flush()
           throws IOException

Specified by:
flush in interface Flushable
Overrides:
flush in class MelatiWriter
Throws:
IOException
See Also:
Flushable.flush()

close

public void close()
           throws IOException

Specified by:
close in interface Closeable
Overrides:
close in class MelatiWriter
Throws:
IOException
See Also:
Closeable.close()


Copyright © 2000-2010 PanEris. All Rights Reserved.