Package org.robwork.sdurw_common
Class LogBufferedChar
- java.lang.Object
-
- org.robwork.sdurw_core.LogWriter
-
- org.robwork.sdurw_common.LogBufferedChar
-
public class LogBufferedChar extends LogWriter
Buffers characters before writing them to the output stream.
The size of the buffer is fixed. On overflow the behavior depends on the
specified OverFlowPolicy. If a single message is larger than
the entire content of the buffer it is truncated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogBufferedChar.OverflowPolicy
Behaviors for the OverflowPolicy
-
Constructor Summary
Constructors Constructor Description LogBufferedChar(long cPtr, boolean cMemoryOwn)
LogBufferedChar(long size, SWIGTYPE_p_std__ostream stream)
Constructs a LogBufferedChar
The LogBufferedMsg keeps a reference to the stream object.LogBufferedChar(long size, SWIGTYPE_p_std__ostream stream, LogBufferedChar.OverflowPolicy policy)
Constructs a LogBufferedChar
The LogBufferedMsg keeps a reference to the stream object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(LogBufferedChar obj)
-
Methods inherited from class org.robwork.sdurw_core.LogWriter
flush, getCPtr, setTabLevel, streamOperator, streamOperator, streamOperator, write, write, writeln
-
-
-
-
Constructor Detail
-
LogBufferedChar
public LogBufferedChar(long cPtr, boolean cMemoryOwn)
-
LogBufferedChar
public LogBufferedChar(long size, SWIGTYPE_p_std__ostream stream, LogBufferedChar.OverflowPolicy policy)
Constructs a LogBufferedChar
The LogBufferedMsg keeps a reference to the stream object. Destroying
the stream object while the LogBufferedChar has a reference to it
results in undefined behavior.
- Parameters:
size
- [in] Size of buffer (in characters)stream
- [in] Stream to write topolicy
- [in] Overflow policy. Default is REMOVE_FIRST
-
LogBufferedChar
public LogBufferedChar(long size, SWIGTYPE_p_std__ostream stream)
Constructs a LogBufferedChar
The LogBufferedMsg keeps a reference to the stream object. Destroying
the stream object while the LogBufferedChar has a reference to it
results in undefined behavior.
- Parameters:
size
- [in] Size of buffer (in characters)stream
- [in] Stream to write to
-
-
Method Detail
-
getCPtr
public static long getCPtr(LogBufferedChar obj)
-
-