Buffer into a Base64-encoded Buffer.
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, Buffer ChannelHandlerContext which this MessageToMessageEncoder belongs to.the message to encode to another one. msg, List<Object> the out)List into which produced output messages should be added.Overrides io. |
| public boolean | isSharable()
Overrides default io. true if this handler is sharable and thus can be added
to more than one ChannelPipeline.
|
| 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, Buffer msg, List<Object> out) throws Exception Overrides io. Doc from io. Encode from one message to another. This method will be called for each written message that can be handled by this encoder. The message will be disposed of after this call.
Subclasses that wish to sometimes pass messages through, should instead override the
| |
| isSharable | back to summary |
|---|---|
| public boolean isSharable() Overrides default io. Doc from io. Returns
| |