xjavadoc
Class JavaDocReader
(package private) final class JavaDocReader
extends FilterReader
A reader which strips away any spaces and stars at the beginning of javadoc.
It also keeps track of line numbers, which is needed for error reporting.
- Aslak Helles?y
int | available() - Returns the number of bytes that can be read without blocking.
|
int | getLineOffset() - Returns the line offset we're currently reading
|
int | read() - Reads a byte of data.
|
int | read(char[] b, int off, int len) - Reads into an array of bytes.
|
long | skip(long n) - Skips bytes of input.
|
_lineOffset
private int _lineOffset
atEnd
private boolean atEnd
badChar
private boolean badChar
endOfLine
private boolean endOfLine
nextChar
private int nextChar
JavaDocReader
public JavaDocReader(Reader in)
in
- the underlying reader, containing javadoc
available
public int available()
throws IOException
Returns the number of bytes that can be read without blocking.
- the number of available bytes
getLineOffset
public int getLineOffset()
Returns the line offset we're currently reading
- line in the javadoc.
read
public int read()
throws IOException
Reads a byte of data. The method will block if no input is available.
- the byte read, or -1 if the end of the stream is
reached.
read
public int read(char[] b,
int off,
int len)
throws IOException
Reads into an array of bytes. Blocks until some input is available.
b
- the buffer into which the data is readoff
- the start offset of the datalen
- the maximum number of bytes read
- the actual number of bytes read, -1 is returned when
the end of the stream is reached.
skip
public long skip(long n)
throws IOException
Skips bytes of input.
n
- bytes to be skipped
- actual number of bytes skipped