ByteBuf into a Base64-encoded ByteBuf.
A typical setup for TCP/IP would be:
ChannelPipelinepipeline = ...; // Decoders pipeline.addLast("frameDecoder", newDelimiterBasedFrameDecoder(80,Delimiters#nulDelimiter())); pipeline.addLast("base64Decoder", newBase64Decoder()); // Encoder pipeline.addLast("base64Encoder", newBase64Encoder());
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Base64Dialect |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | encode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this MessageToMessageEncoder belongs tothe message to encode to an other one msg, List<Object> the out)List into which the encoded msg should be added
needs to do some kind of aggregationImplements abstract io. |
| breakLines | back to summary |
|---|---|
| private final boolean breakLines | |
| dialect | back to summary |
|---|---|
| private final Base64Dialect dialect | |
| Base64Encoder | back to summary |
|---|---|
| public Base64Encoder() | |
| Base64Encoder | back to summary |
|---|---|
| public Base64Encoder(boolean breakLines) | |
| Base64Encoder | back to summary |
|---|---|
| public Base64Encoder(boolean breakLines, Base64Dialect dialect) | |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception Implements abstract io. Doc from io. Encode from one message to an other. This method will be called for each written message that can be handled by this encoder.
| |