Class Base32Encoder

All Implemented Interfaces:
Encoder

public class Base32Encoder extends AbstractBaseNEncoder
Stateful base 32 encoder with support for configurable line breaks.
Author:
Middleware Services
  • Constructor Details

    • Base32Encoder

      public Base32Encoder()
      Creates a new instance that produces base 32-encoded output in the RFC 4648 alphabet, ABCDEFGHIJKLMNOPQRSTUVWXYZ234567, with no line breaks in the output.
    • Base32Encoder

      public Base32Encoder(int charactersPerLine)
      Creates a new instance that produces base 32-encoded output in the RFC 4648 alphabet, ABCDEFGHIJKLMNOPQRSTUVWXYZ234567, with the given number of characters per line in the output.
      Parameters:
      charactersPerLine - Number of characters per line. A zero or negative value disables line breaks.
    • Base32Encoder

      public Base32Encoder(String alphabet)
      Creates a new instance that produces base 32-encoded output in the given 32-character alphabet with no line breaks in the output.
      Parameters:
      alphabet - 32-character alphabet to use.
    • Base32Encoder

      public Base32Encoder(String alphabet, int charactersPerLine)
      Creates a new instance that produces base 32-encoded output in the given 32-character alphabet with the given number of characters per line in the output.
      Parameters:
      alphabet - 32-character alphabet to use.
      charactersPerLine - Number of characters per line. A zero or negative value disables line breaks.
  • Method Details