org.melati.util
Class FtellWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.melati.util.FtellWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class FtellWriter
- extends java.io.FilterWriter
A FilterWriter which knows how much it has written.
| Fields inherited from class java.io.FilterWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
|
Constructor Summary |
FtellWriter(java.io.Writer writer)
Constructor. |
|
Method Summary |
long |
ftell()
|
void |
write(char[] buf,
int off,
int len)
|
void |
write(int c)
|
void |
write(java.lang.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 |
position
protected long position
FtellWriter
public FtellWriter(java.io.Writer writer)
- Constructor.
- Parameters:
writer - Underlying writer
write
public void write(int c)
throws java.io.IOException
-
- Overrides:
write in class java.io.FilterWriter
- Throws:
java.io.IOException- See Also:
FilterWriter.write(int)
write
public void write(char[] buf,
int off,
int len)
throws java.io.IOException
-
- Overrides:
write in class java.io.FilterWriter
- Throws:
java.io.IOException- See Also:
FilterWriter.write(char[], int, int)
write
public void write(java.lang.String buf,
int off,
int len)
throws java.io.IOException
-
- Overrides:
write in class java.io.FilterWriter
- Throws:
java.io.IOException- See Also:
FilterWriter.write(java.lang.String, int, int)
ftell
public long ftell()
- Returns:
- number of characters written
Copyright © 2000-2008 PanEris. All Rights Reserved.