Interface WrapOptions.Builder

  • Method Details

    • wrapBy

      WrapOptions.Builder wrapBy(String wrapBy)

      Specifies the method used for wrapping lines in the EDI output. Valid values:

      • SEGMENT: Wraps by segment.

      • ONE_LINE: Indicates that the entire content is on a single line.

        When you specify ONE_LINE, do not provide either the line length nor the line terminator value.

      • LINE_LENGTH: Wraps by character count, as specified by lineLength value.

      Parameters:
      wrapBy - Specifies the method used for wrapping lines in the EDI output. Valid values:

      • SEGMENT: Wraps by segment.

      • ONE_LINE: Indicates that the entire content is on a single line.

        When you specify ONE_LINE, do not provide either the line length nor the line terminator value.

      • LINE_LENGTH: Wraps by character count, as specified by lineLength value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • wrapBy

      Specifies the method used for wrapping lines in the EDI output. Valid values:

      • SEGMENT: Wraps by segment.

      • ONE_LINE: Indicates that the entire content is on a single line.

        When you specify ONE_LINE, do not provide either the line length nor the line terminator value.

      • LINE_LENGTH: Wraps by character count, as specified by lineLength value.

      Parameters:
      wrapBy - Specifies the method used for wrapping lines in the EDI output. Valid values:

      • SEGMENT: Wraps by segment.

      • ONE_LINE: Indicates that the entire content is on a single line.

        When you specify ONE_LINE, do not provide either the line length nor the line terminator value.

      • LINE_LENGTH: Wraps by character count, as specified by lineLength value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineTerminator

      WrapOptions.Builder lineTerminator(String lineTerminator)

      Specifies the character sequence used to terminate lines when wrapping. Valid values:

      • CRLF: carriage return and line feed

      • LF: line feed)

      • CR: carriage return

      Parameters:
      lineTerminator - Specifies the character sequence used to terminate lines when wrapping. Valid values:

      • CRLF: carriage return and line feed

      • LF: line feed)

      • CR: carriage return

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineTerminator

      WrapOptions.Builder lineTerminator(LineTerminator lineTerminator)

      Specifies the character sequence used to terminate lines when wrapping. Valid values:

      • CRLF: carriage return and line feed

      • LF: line feed)

      • CR: carriage return

      Parameters:
      lineTerminator - Specifies the character sequence used to terminate lines when wrapping. Valid values:

      • CRLF: carriage return and line feed

      • LF: line feed)

      • CR: carriage return

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineLength

      WrapOptions.Builder lineLength(Integer lineLength)

      Specifies the maximum length of a line before wrapping occurs. This value is used when wrapBy is set to LINE_LENGTH.

      Parameters:
      lineLength - Specifies the maximum length of a line before wrapping occurs. This value is used when wrapBy is set to LINE_LENGTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.