public interface LogDescriptor extends Descriptor
Unlike other descriptors, logs can get very large and are typically stored on disk in compressed form. Access to log contents through this interface and its subinterfaces is made available in compressed and decompressed form:
Modifier and Type | Interface and Description |
---|---|
static interface |
LogDescriptor.Line
Base interface for accessing log lines.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
decompressedByteStream()
Returns the decompressed raw descriptor bytes of the log as stream.
|
java.util.List<java.lang.String> |
getAnnotations()
Returns annotations found in the log file, which may be an empty List if a
log format does not support adding annotations.
|
byte[] |
getRawDescriptorBytes()
Returns the raw compressed descriptor bytes of the log.
|
java.util.List<java.lang.String> |
getUnrecognizedLines()
Returns unrecognized lines encountered while parsing the log, which may be
an empty list or a fixed-size list with only a few entries, depending on
the log type.
|
java.util.stream.Stream<? extends LogDescriptor.Line> |
logLines()
Returns a stream of all parseable log lines.
|
getDescriptorFile, getRawDescriptorLength
byte[] getRawDescriptorBytes()
For access to the log's decompressed bytes of
use method decompressedByteStream
.
getRawDescriptorBytes
in interface Descriptor
java.io.InputStream decompressedByteStream() throws DescriptorParseException
DescriptorParseException
java.util.List<java.lang.String> getAnnotations()
getAnnotations
in interface Descriptor
java.util.List<java.lang.String> getUnrecognizedLines()
getUnrecognizedLines
in interface Descriptor
java.util.stream.Stream<? extends LogDescriptor.Line> logLines() throws DescriptorParseException
Depending on log size this might not fit into a collection type.
DescriptorParseException