Package org.apache.bookkeeper.util
Class EntryFormatter
java.lang.Object
org.apache.bookkeeper.util.EntryFormatter
- Direct Known Subclasses:
HexDumpEntryFormatter,StringEntryFormatter
Formatter to format an entry.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidformatEntry(byte[] data) Format an entry into a readable format.abstract voidformatEntry(InputStream input) Format an entry from a string into a readable format.static EntryFormatternewEntryFormatter(String opt, AbstractConfiguration conf) static EntryFormatternewEntryFormatter(AbstractConfiguration<?> conf)
-
Field Details
-
STRING_FORMATTER
-
-
Constructor Details
-
EntryFormatter
public EntryFormatter()
-
-
Method Details
-
formatEntry
public abstract void formatEntry(byte[] data) Format an entry into a readable format.- Parameters:
data- Data Payload
-
formatEntry
Format an entry from a string into a readable format.- Parameters:
input- Input Stream
-
newEntryFormatter
-
newEntryFormatter
-