org.melati.util
Class FtellWriter

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

public class FtellWriter
extends FilterWriter

A FilterWriter which knows how much it has written.


Field Summary
protected  long position
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FtellWriter(Writer writer)
          Constructor.
 
Method Summary
 long ftell()
           
 void write(char[] buf, int off, int len)
          
 void write(int c)
          
 void write(String buf, int off, int len)
          
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected long position
Constructor Detail

FtellWriter

public FtellWriter(Writer writer)
Constructor.

Parameters:
writer - Underlying writer
Method Detail

write

public void write(int c)
           throws IOException

Overrides:
write in class FilterWriter
Throws:
IOException
See Also:
FilterWriter.write(int)

write

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

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

write

public void write(String buf,
                  int off,
                  int len)
           throws IOException

Overrides:
write in class FilterWriter
Throws:
IOException
See Also:
FilterWriter.write(java.lang.String, int, int)

ftell

public long ftell()
Returns:
number of characters written


Copyright © 2000-2010 PanEris. All Rights Reserved.