Class 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.
    • 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 to
        policy - [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