Package com.storedobject.common
Class StringFillerWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
com.storedobject.common.TranslatedWriter
com.storedobject.common.StringFillerWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
A
FilterWriter that applies "string filling" (see StringUtility.fill(String, StringFiller)) to
its lines.- Author:
- Syam
-
Field Summary
Fields inherited from class com.storedobject.common.TranslatedWriter
in, out -
Constructor Summary
ConstructorsConstructorDescriptionStringFillerWriter(Writer in, StringFiller filler) Creates a new filtered reader. -
Method Summary
-
Constructor Details
-
StringFillerWriter
Creates a new filtered reader.- Parameters:
in- A Writer object providing the underlying stream.filler-StringFiller.
-
-
Method Details
-
translate
Description copied from class:TranslatedWriterTranslation should be done here. Original writer is available in the variableoutand the translated output should be written to it by reading theBufferedReader(variablein) and translating it (i.e., read from 'in', translate and write to 'out')- Specified by:
translatein classTranslatedWriter- Throws:
Exception- Throws any exception so that the ultimate reading program will get it.
-