org.melati.util
Class FtellWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.melati.util.FtellWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class FtellWriter
- extends FilterWriter
A FilterWriter
which knows how much it has written.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
position
protected long position
FtellWriter
public FtellWriter(Writer writer)
- Constructor.
- Parameters:
writer
- Underlying writer
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.