Package com.icegreen.greenmail.util
Class LineLoggingBuffer
- java.lang.Object
-
- com.icegreen.greenmail.util.LineLoggingBuffer
-
public class LineLoggingBuffer extends Object
Buffers and logs when detecting CR-LF.- Wraps long lines
- Escapes non-ASCII-printable chars
-
-
Constructor Summary
Constructors Constructor Description LineLoggingBuffer(String linePrefix)Creates new buffer using given line prefix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(int b)Appends and escapes value.protected booleanisLineLengthExceeded()voidlogLine()Triggers log output of current buffer (if any) and resets back to empty buffer.
-
-
-
Constructor Detail
-
LineLoggingBuffer
public LineLoggingBuffer(String linePrefix)
Creates new buffer using given line prefix.- Parameters:
linePrefix- prefix for each line printed, eg "S:" or "C:"
-
-