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
FieldsModifier and TypeFieldDescriptionprotected OutputStreamprotected intprotected static final intprotected static final int -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()protected voidsetTimeStack(Stack<Long> timeStack) Workaround: Set the time stack referenceprotected voidstartln()Start a new (indented) line of outputvoidwrite(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:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-