| java.io.CharArrayReader org.netbeans.modules.java.source.engine.SourceReader
SourceReader | public class SourceReader extends CharArrayReader (Code) | | Utility class for reading source files.
|
Constructor Summary | |
public | SourceReader(char[] src) Create a new SourceReader instance. |
Method Summary | |
public char[] | getCharsTo(int offset) Returns the chars between the current position and a
specified offset. | public int | getPos() Returns current reader position. | public long | seek(int offset) Set position to specified array offset. |
SourceReader | public SourceReader(char[] src)(Code) | | Create a new SourceReader instance.
Parameters: src - the array of characters which are the source file's contents. |
getCharsTo | public char[] getCharsTo(int offset) throws IOException(Code) | | Returns the chars between the current position and a
specified offset.
Parameters: offset - the ending offset of the text range to return. throws: IOException - if the current position is greaterthan the offset, or if the offset is outside the range of the SourceReader's character array. |
getPos | public int getPos()(Code) | | Returns current reader position.
reader position |
seek | public long seek(int offset) throws IOException(Code) | | Set position to specified array offset.
|
|
|