Package eu.bandm.tools.d2d2.infra
Class MemString.Reader
java.lang.Object
java.io.Reader
eu.bandm.tools.d2d2.infra.MemString.Reader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
Used for
aMemString.new Reader()
to use the memString
as sequential character data source, e.g. for an Xantlr lexer.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
No operation.int
read
(char[] buf, int pos, int len) Read the requested characters from the currentMemString.start
pointer and advance this accordingly.Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
Reader
public Reader()
-
-
Method Details
-
close
public void close()No operation. -
read
public int read(char[] buf, int pos, int len) Read the requested characters from the currentMemString.start
pointer and advance this accordingly.
-