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 for Base64DataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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 interface DataFormatBuilder<Base64DataFormat>
      Returns:
      the data format fully built.