@Deprecated public class LumberjackDecoder extends Object
| Modifier and Type | Field and Description |
|---|---|
private Charset |
charset
Deprecated.
|
private ByteArrayOutputStream |
currBytes
Deprecated.
|
private LumberjackState |
currState
Deprecated.
|
private byte |
decodedFrameType
Deprecated.
|
private byte[] |
decompressedData
Deprecated.
|
static byte |
FRAME_ACK
Deprecated.
|
static byte |
FRAME_COMPRESSED
Deprecated.
|
static byte |
FRAME_DATA
Deprecated.
|
static byte |
FRAME_JSON
Deprecated.
|
static byte |
FRAME_WINDOWSIZE
Deprecated.
|
private LumberjackFrame.Builder |
frameBuilder
Deprecated.
|
(package private) static org.slf4j.Logger |
logger
Deprecated.
|
private long |
windowSize
Deprecated.
|
| Constructor and Description |
|---|
LumberjackDecoder(Charset charset)
Deprecated.
|
LumberjackDecoder(Charset charset,
ByteArrayOutputStream buffer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<LumberjackFrame> |
getFrames()
Deprecated.
Returns the decoded frame and resets the decoder for the next frame.
|
boolean |
process(byte currByte)
Deprecated.
Process the next byte from the channel, updating the builder and state accordingly.
|
private void |
processCOMPLETE()
Deprecated.
|
private List<LumberjackFrame> |
processDECOMPRESSED(byte[] decompressedData)
Deprecated.
|
private void |
processFRAMETYPE(byte b)
Deprecated.
|
private void |
processPAYLOAD(byte b)
Deprecated.
|
private void |
processVERSION(byte b)
Deprecated.
|
void |
reset()
Deprecated.
Resets this decoder back to its initial state.
|
static final org.slf4j.Logger logger
private LumberjackFrame.Builder frameBuilder
private LumberjackState currState
private byte decodedFrameType
private byte[] decompressedData
private final Charset charset
private final ByteArrayOutputStream currBytes
private long windowSize
public static final byte FRAME_WINDOWSIZE
public static final byte FRAME_DATA
public static final byte FRAME_COMPRESSED
public static final byte FRAME_ACK
public static final byte FRAME_JSON
public LumberjackDecoder(Charset charset)
charset - the charset to decode bytes from the Lumberjack framepublic LumberjackDecoder(Charset charset, ByteArrayOutputStream buffer)
charset - the charset to decode bytes from the Lumberjack framebuffer - a buffer to use while processing the bytespublic void reset()
public boolean process(byte currByte)
throws LumberjackFrameException
currByte - the next byte to processLumberjackFrameExceptionpublic List<LumberjackFrame> getFrames() throws LumberjackFrameException
LumberjackFrameExceptionprivate List<LumberjackFrame> processDECOMPRESSED(byte[] decompressedData)
private void processVERSION(byte b)
private void processFRAMETYPE(byte b)
private void processPAYLOAD(byte b)
private void processCOMPLETE()
Copyright © 2021 Apache NiFi Project. All rights reserved.