Package org.apache.bookkeeper.util
Class EntryFormatter
- java.lang.Object
-
- org.apache.bookkeeper.util.EntryFormatter
-
- Direct Known Subclasses:
HexDumpEntryFormatter
,StringEntryFormatter
public abstract class EntryFormatter extends java.lang.Object
Formatter to format an entry.
-
-
Field Summary
Fields Modifier and Type Field Description static EntryFormatter
STRING_FORMATTER
-
Constructor Summary
Constructors Constructor Description EntryFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
formatEntry(byte[] data)
Format an entry into a readable format.abstract void
formatEntry(java.io.InputStream input)
Format an entry from a string into a readable format.static EntryFormatter
newEntryFormatter(java.lang.String opt, AbstractConfiguration conf)
static EntryFormatter
newEntryFormatter(AbstractConfiguration<?> conf)
-
-
-
Field Detail
-
STRING_FORMATTER
public static final EntryFormatter STRING_FORMATTER
-
-
Method Detail
-
formatEntry
public abstract void formatEntry(byte[] data)
Format an entry into a readable format.- Parameters:
data
- Data Payload
-
formatEntry
public abstract void formatEntry(java.io.InputStream input)
Format an entry from a string into a readable format.- Parameters:
input
- Input Stream
-
newEntryFormatter
public static EntryFormatter newEntryFormatter(AbstractConfiguration<?> conf)
-
newEntryFormatter
public static EntryFormatter newEntryFormatter(java.lang.String opt, AbstractConfiguration conf)
-
-