Class Base64DataFormat.Builder
- java.lang.Object
-
- org.apache.camel.model.dataformat.Base64DataFormat.Builder
-
- All Implemented Interfaces:
DataFormatBuilder<Base64DataFormat>
- Enclosing class:
- Base64DataFormat
public static class Base64DataFormat.Builder extends Object implements DataFormatBuilder<Base64DataFormat>
Builder
is a specific builder forBase64DataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Base64DataFormat
end()
Ends the build of the data format.Base64DataFormat.Builder
lineLength(int lineLength)
To specific a maximum line length for the encoded data.Base64DataFormat.Builder
lineLength(String lineLength)
To specific a maximum line length for the encoded data.Base64DataFormat.Builder
lineSeparator(String lineSeparator)
The line separators to use.Base64DataFormat.Builder
urlSafe(boolean urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively.Base64DataFormat.Builder
urlSafe(String urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively.
-
-
-
Method Detail
-
lineLength
public Base64DataFormat.Builder lineLength(String lineLength)
To specific a maximum line length for the encoded data. By default 76 is used.
-
lineLength
public Base64DataFormat.Builder lineLength(int lineLength)
To specific a maximum line length for the encoded data. By default 76 is used.
-
lineSeparator
public Base64DataFormat.Builder lineSeparator(String lineSeparator)
The line separators to use. Uses new line characters (CRLF) by default.
-
urlSafe
public Base64DataFormat.Builder urlSafe(String urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encode operations. Decoding seamlessly handles both modes. Is by default false.
-
urlSafe
public Base64DataFormat.Builder urlSafe(boolean urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encode operations. Decoding seamlessly handles both modes. Is by default false.
-
end
public Base64DataFormat end()
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<Base64DataFormat>
- Returns:
- the data format fully built.
-
-