|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
peersim.rangesim.TaggedOutputStream
public class TaggedOutputStream
This OutputStream uses an underlying stream to output data. Each line (terminated with `\n`) is augmented with a tag character. This is used to discriminate among standard error and standard output. This feature is needed for launching new JVMs; it should not be used for other purposes.
Parameter Summary | |
---|---|
ranges
This parameter contains the string that should be printed on each line, containing the values of the range parameters for the experiment which is being run. |
|
simulation.timed-observers
This parameter contains the list of observers for which the string contained in parameter "ranges" should be augmented with a "TIME <t>" specification regarding current time. |
Field Summary | |
---|---|
static int |
TAG
This character is appended at the end of each line. |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
TaggedOutputStream(java.lang.String prefix)
Creates a tagged output stream that prints the tagged output on the specified stream. |
Method Summary | |
---|---|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.PrintStream |
---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError |
Methods inherited from class java.io.FilterOutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter Detail |
---|
ranges
simulation.timed-observers
Field Detail |
---|
public static final int TAG
Constructor Detail |
---|
public TaggedOutputStream(java.lang.String prefix)
Method Detail |
---|
public void write(byte[] b, int off, int len)
write
in class java.io.PrintStream
public void write(int b)
write
in class java.io.PrintStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |