org.melati.util
Class MelatiBufferedWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.melati.util.MelatiWriter
          extended by org.melati.util.MelatiBufferedWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.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(java.io.Writer writer)
          Constructor.
 
Method Summary
 void close()
          
 void flush()
          
 void reset()
          Hook for extension.
 void write(char[] cbuf, int off, int len)
          
 
Methods inherited from class org.melati.util.MelatiWriter
getPrintWriter, 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(java.io.Writer writer)
Constructor.

Parameters:
writer - the Writer
Method Detail

write

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

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

reset

public void reset()
           throws java.io.IOException
Hook for extension.

Overrides:
reset in class MelatiWriter
Throws:
java.io.IOException
See Also:
MelatiWriter.reset()

flush

public void flush()
           throws java.io.IOException

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

close

public void close()
           throws java.io.IOException

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


Copyright © 2000-2008 PanEris. All Rights Reserved.