Class Readers
java.lang.Object
org.codehaus.commons.compiler.io.Readers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReaderAny attempts to read return an "end-of-input" condition. -
Constructor Summary
Constructors -
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.
-
-
Constructor Details
-
Readers
private Readers()
-
-
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
-
teeReader
-
readAll
- Throws:
IOException
-
copy
- Throws:
IOException
-