Class StringLogBuffer

  • All Implemented Interfaces:
    LogBuffer<java.lang.String>

    public class StringLogBuffer
    extends java.lang.Object
    implements LogBuffer<java.lang.String>
    Implements basic buffer of data into a String
    • Constructor Summary

      Constructors 
      Constructor Description
      StringLogBuffer​(java.nio.charset.Charset charset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear the buffer
      java.lang.String get()  
      boolean isEmpty()  
      void reset()
      reset buffer
      void write​(byte b)
      write a byte
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringLogBuffer

        public StringLogBuffer​(java.nio.charset.Charset charset)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface LogBuffer<java.lang.String>
        Returns:
        true if empty
      • reset

        public void reset()
        Description copied from interface: LogBuffer
        reset buffer
        Specified by:
        reset in interface LogBuffer<java.lang.String>
      • write

        public void write​(byte b)
        Description copied from interface: LogBuffer
        write a byte
        Specified by:
        write in interface LogBuffer<java.lang.String>
        Parameters:
        b - data
      • clear

        public void clear()
        Description copied from interface: LogBuffer
        Clear the buffer
        Specified by:
        clear in interface LogBuffer<java.lang.String>
      • get

        public java.lang.String get()
        Specified by:
        get in interface LogBuffer<java.lang.String>
        Returns:
        contents as string