| Modifier and Type | Class and Description |
|---|---|
class |
StringCodec.StringEncoder |
DEFAULT_DELIMITER, delimiter| Constructor and Description |
|---|
StringCodec() |
StringCodec(Byte delimiter) |
StringCodec(Byte delimiter,
Charset charset) |
StringCodec(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
apply(String s)
Execute the logic of the action, accepting the given parameter.
|
protected String |
decode(Buffer buffer,
CharsetDecoder charsetDecoder) |
Function<Buffer,String> |
decoder(Consumer<String> next)
Provide the caller with a decoder to turn a source object into an instance of the input
type.
|
protected String |
doBufferDecode(Buffer buffer)
Decode a buffer
|
protected Buffer |
encode(String s,
CharsetEncoder charsetEncoder) |
Function<String,Buffer> |
encoder()
Provide the caller with an encoder to turn an output object into an instance of the source
type.
|
decode, encodeaddDelimiterIfAny, decoder, doDelimitedBufferDecode, invokeCallbackOrReturnpublic StringCodec()
public StringCodec(Charset charset)
public StringCodec(Byte delimiter)
public Function<String,Buffer> encoder()
Codecpublic Function<Buffer,String> decoder(Consumer<String> next)
Codecprotected String doBufferDecode(Buffer buffer)
CodecdoBufferDecode in class Codec<Buffer,String,String>public Buffer apply(String s)
Functions - The parameter to pass to the action.protected String decode(Buffer buffer, CharsetDecoder charsetDecoder)
protected Buffer encode(String s, CharsetEncoder charsetEncoder)
Copyright © 2016. All rights reserved.