Package com.storedobject.common
Class StringFillerReader
java.lang.Object
java.io.Reader
java.io.FilterReader
com.storedobject.common.TranslatedReader
com.storedobject.common.StringFillerReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
A
FilterReader that applies "string filling" (see StringUtility.fill(String, StringFiller)) to
its lines.- Author:
- Syam
-
Field Summary
Fields inherited from class com.storedobject.common.TranslatedReader
in, out -
Constructor Summary
ConstructorsConstructorDescriptionStringFillerReader(Reader in, StringFiller filler) Creates a new filtered reader. -
Method Summary
Methods inherited from class java.io.FilterReader
close, mark, markSupported, read, read, ready, reset, skipMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
StringFillerReader
Creates a new filtered reader.- Parameters:
in- A Reader object providing the underlying stream.filler-StringFiller.
-
-
Method Details
-
translate
Description copied from class:TranslatedReaderTranslation should be done here. Original reader is available in the variableinand the translated output should be written to theBufferedWriter(variableout).- Specified by:
translatein classTranslatedReader- Throws:
Exception- Throws any exception so that the ultimate reading program will get it.
-