Class Base64DataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.Base64DataFormat
@Metadata(firstVersion="2.11.0",
label="dataformat,transformation",
title="Base64")
public class Base64DataFormat
extends DataFormatDefinition
Encode and decode data using Base64.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forBase64DataFormat
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLineLength
(String lineLength) To specific a maximum line length for the encoded data.void
setLineSeparator
(String lineSeparator) The line separators to use.void
setUrlSafe
(String urlSafe) Instead of emitting '+' and '/' we emit '-' and '_' respectively.Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
Base64DataFormat
public Base64DataFormat()
-
-
Method Details
-
getLineLength
-
setLineLength
To specific a maximum line length for the encoded data. By default 76 is used. -
getLineSeparator
-
setLineSeparator
The line separators to use. Uses new line characters (CRLF) by default. -
getUrlSafe
-
setUrlSafe
Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encode operations. Decoding seamlessly handles both modes. Is by default false.
-