org.melati.util
Class FtellPrintWriter

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

public class FtellPrintWriter
extends PrintWriter

A PrintWriter which knows how much it has written.


Field Summary
protected  long position
           
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FtellPrintWriter(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.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, 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

FtellPrintWriter

public FtellPrintWriter(Writer writer)
Constructor.

Parameters:
writer - to write to
Method Detail

write

public void write(int c)

Overrides:
write in class PrintWriter
See Also:
PrintWriter.write(int)

write

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

Overrides:
write in class PrintWriter
See Also:
PrintWriter.write(char[], int, int)

write

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

Overrides:
write in class PrintWriter
See Also:
PrintWriter.write(java.lang.String, int, int)

ftell

public long ftell()
Returns:
number of characters written


Copyright © 2000-2010 PanEris. All Rights Reserved.