Package org.codehaus.commons.compiler.io
Class Readers
java.lang.Object
org.codehaus.commons.compiler.io.Readers
Utiltity methods related to
Reader.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReaderAny attempts to read return an "end-of-input" condition. -
Method Summary
Modifier and TypeMethodDescriptionstatic Readerstatic Readerstatic voidstatic ReaderonFirstChar(Reader in, Runnable runnable) static Stringstatic Readerstatic ReadertrackLineAndColumn(Reader in, LineAndColumnTracker tracker)
-
Field Details
-
EMPTY_READER
Any attempts to read return an "end-of-input" condition.
-
-
Method Details
-
onFirstChar
- Returns:
FilterReaderthat runs the runnable right before the first character is read
-
trackLineAndColumn
- Returns:
- A
FilterReaderthat tracks line and column numbers while characters are being read
-
concat
-
concat
- Returns:
- Reads from the first element of the delegates, then, after EOI, from the second until EOI, and so forth
-
teeReader
-
readAll
- Throws:
IOException
-
copy
- Throws:
IOException
-