public class MultilineCodecBuilder extends Object
A typical example :
ICodecs currentData = new MultilineCodecBuilder()
.setType(ECodec.MULTILINE_STARTSWITH)
.setCapacity(16 * this.chunkSize)
.setPattern("--")
.setDelimiter("\n")
.setTimeout(2000)
.build();
Constructor and Description |
---|
MultilineCodecBuilder() |
Modifier and Type | Method and Description |
---|---|
ICodec<String> |
build() |
MultilineCodecBuilder |
setCapacity(int capacity) |
MultilineCodecBuilder |
setDelimiter(String delimiter) |
MultilineCodecBuilder |
setPattern(String pattern) |
MultilineCodecBuilder |
setTimeout(Long timeout) |
MultilineCodecBuilder |
setType(ECodec codec)
Set the type of this codec.
|
public MultilineCodecBuilder setType(ECodec codec)
codec
- the codec typepublic MultilineCodecBuilder setCapacity(int capacity)
public MultilineCodecBuilder setPattern(String pattern)
public MultilineCodecBuilder setDelimiter(String delimiter)
public MultilineCodecBuilder setTimeout(Long timeout)
Copyright © 2022. All rights reserved.