Class DbgTimer.TabbingOutputStream
java.lang.Object
java.io.OutputStream
ghidra.app.plugin.assembler.sleigh.util.DbgTimer.TabbingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
DbgTimer
A (rather slow) output stream that indents every line of its output
-
Field Summary
Modifier and TypeFieldDescriptionprotected OutputStream
protected int
protected static final int
protected static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
protected void
setTimeStack
(Stack<Long> timeStack) Workaround: Set the time stack referenceprotected void
startln()
Start a new (indented) line of outputvoid
write
(int b) Parses each line and prepends the indentation as they are printedMethods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Field Details
-
STATE_NOLINE
protected static final int STATE_NOLINE- See Also:
-
STATE_LINE
protected static final int STATE_LINE- See Also:
-
out
-
state
protected int state -
timeStack
-
-
Method Details
-
startln
Start a new (indented) line of output- Throws:
IOException
-
setTimeStack
Workaround: Set the time stack reference- Parameters:
timeStack
- the stack
-
write
Parses each line and prepends the indentation as they are printed- Specified by:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-