Constructor and Description |
---|
MultilineCodec(int capacity,
String pattern,
String delimiter,
Long timeout,
ECodec codec)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
append(char[] array,
int len)
Append a char array at the end of the codec.
|
void |
append(String s)
Add some data to the decoder
|
void |
flush()
flush buffer
|
List<String> |
getNextItems()
Return the next complete json elements, if any.
|
ECodec |
getType() |
void |
tick()
Tick method, to flush data if some are present in buffer after timeout.
|
public void tick()
public List<String> getNextItems()
getNextItems
in interface ICodec<String>
public void append(String s)
public void append(char[] array, int len)
ICodec
public void flush()
ICodec
Copyright © 2023. All rights reserved.