Package org.hl7.fhir.utilities
Class TextStreamWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.OutputStreamWriter
-
- org.hl7.fhir.utilities.TextStreamWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Direct Known Subclasses:
CSVWriter,SchematronWriter
public class TextStreamWriter extends OutputStreamWriter
TextStream writer that helps to write indented text. ln_i() indents, ln_o() outdents.- Author:
- Ewout
-
-
Constructor Summary
Constructors Constructor Description TextStreamWriter(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidln(String line)voidln_i(String line)voidln_o(String line)-
Methods inherited from class java.io.OutputStreamWriter
append, append, close, flush, getEncoding, write, write, write
-
Methods inherited from class java.io.Writer
append, nullWriter, write, write
-
-
-
-
Constructor Detail
-
TextStreamWriter
public TextStreamWriter(OutputStream out) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-
Method Detail
-
ln
public void ln(String line) throws IOException
- Throws:
IOException
-
ln_i
public void ln_i(String line) throws IOException
- Throws:
IOException
-
ln_o
public void ln_o(String line) throws IOException
- Throws:
IOException
-
-