org.wings.template.parser
Class PositionReader
java.lang.Object
java.io.Reader
org.wings.template.parser.PositionReader
- All Implemented Interfaces:
- Closeable, Readable
public class PositionReader
- extends Reader
PositionReader can be asked for the
current position in the stream.
- Author:
- Henner Zeller
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PositionReader
public PositionReader(Reader r)
getPosition
public long getPosition()
read
public int read()
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
read
public int read(char[] cbuff)
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
read
public int read(char[] cbuff,
int off,
int len)
throws IOException
- Specified by:
read in class Reader
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip in class Reader
- Throws:
IOException
ready
public boolean ready()
throws IOException
- Overrides:
ready in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class Reader
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark in class Reader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset in class Reader
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in class Reader
- Throws:
IOException
wingS Swings ;-)