|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.dtolabs.rundeck.core.utils.FormattedOutputStream
public class FormattedOutputStream
FormattedOutputStream buffers the output data and then outputs each line after reformatting the line using the
specified Reformatter. Context Data can be set via setContext(String, String)
.
Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
FormattedOutputStream(Reformatter reformatter,
java.io.OutputStream sink)
Deprecated. Create a new FormattedOutputStream |
Method Summary | |
---|---|
void |
close()
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getContext()
Deprecated. Return the context map |
java.io.OutputStream |
getOriginalSink()
Deprecated. Return original OutputStream sink |
void |
setContext(java.lang.String key,
java.lang.String value)
Deprecated. Set a context data value to be used by the Reformatter |
void |
write(int b)
Deprecated. Overrides the FilterOutputStream method to buffer the data. |
Methods inherited from class java.io.FilterOutputStream |
---|
flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormattedOutputStream(Reformatter reformatter, java.io.OutputStream sink)
reformatter
- reformatter or nullsink
- destination OutputStreamMethod Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
b
-
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.FilterOutputStream
java.io.IOException
public java.util.Map<java.lang.String,java.lang.String> getContext()
public void setContext(java.lang.String key, java.lang.String value)
key
- value
- public java.io.OutputStream getOriginalSink()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |