Package com.dtolabs.rundeck.core.utils
Interface LogBuffer<D>
-
- Type Parameters:
D
- data type
- All Known Implementing Classes:
LogEventBuffer
,StringLogBuffer
public interface LogBuffer<D>
Buffer for capturing data into another data type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear the bufferD
get()
boolean
isEmpty()
void
reset()
reset buffervoid
write(byte b)
write a byte
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
- Returns:
- true if empty
-
reset
void reset()
reset buffer
-
write
void write(byte b)
write a byte- Parameters:
b
- data
-
clear
void clear()
Clear the buffer
-
get
D get()
- Returns:
- result datatype
-
-