net.cscott.sinjdoc.html

Class ReplayReader

public class ReplayReader extends Reader

The ReplayReader class allows mark and replay of selected portions of a Reader's contents.

Version: $Id: ReplayReader.java,v 1.3 2003/05/08 03:54:25 cananian Exp $

Author: C. Scott Ananian

Nested Class Summary
static interfaceReplayReader.Mark
An abstract object used to represent a stream position in a ReplayReader.
Constructor Summary
ReplayReader(Reader r)
Creates a ReplayReader.
Method Summary
voidclose()
ReplayReader.MarkgetMark()
Returns a Mark representing the current stream position.
voidmark(int ignore)
booleanmarkSupported()
intread(char[] cbuf, int off, int len)
booleanready()
voidreset()
voidreset(ReplayReader.Mark m)
Reset the stream to the position of the given Mark.

Constructor Detail

ReplayReader

public ReplayReader(Reader r)
Creates a ReplayReader.

Method Detail

close

public void close()

getMark

public ReplayReader.Mark getMark()
Returns a Mark representing the current stream position.

mark

public void mark(int ignore)

markSupported

public boolean markSupported()

Returns: true

read

public int read(char[] cbuf, int off, int len)

ready

public boolean ready()

reset

public void reset()

reset

public void reset(ReplayReader.Mark m)
Reset the stream to the position of the given Mark.
Copyright © 2003 C. Scott Ananian