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, skip
Methods 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:TranslatedReader
Translation should be done here. Original reader is available in the variablein
and the translated output should be written to theBufferedWriter
(variableout
).- Specified by:
translate
in classTranslatedReader
- Throws:
Exception
- Throws any exception so that the ultimate reading program will get it.
-