Builder

Common
JVM
JS
Native
1.0
class Builder
(source)

Provides an API for building a BytesHexFormat.

This class is a builder for BytesHexFormat, and serves as the type of the bytes property when creating a new format using the HexFormat { } builder function. Each option in this class corresponds to an option in BytesHexFormat and defines it in the resulting format. For example, use val format = HexFormat { bytes.byteSeparator = true } to set BytesHexFormat.byteSeparator. Refer to BytesHexFormat for details about how the configured format options affect formatting and parsing results.

Properties

Common
JVM
JS
Native
1.0

bytePrefix

Defines BytesHexFormat.bytePrefix of the format being built, empty string by default.

var bytePrefix: String
Common
JVM
JS
Native
1.0

byteSeparator

Defines BytesHexFormat.byteSeparator of the format being built, empty string by default.

var byteSeparator: String
Common
JVM
JS
Native
1.0

bytesPerGroup

Defines BytesHexFormat.bytesPerGroup of the format being built, Int.MAX_VALUE by default.

var bytesPerGroup: Int
Common
JVM
JS
Native
1.0

bytesPerLine

Defines BytesHexFormat.bytesPerLine of the format being built, Int.MAX_VALUE by default.

var bytesPerLine: Int
Common
JVM
JS
Native
1.0

byteSuffix

Defines BytesHexFormat.byteSuffix of the format being built, empty string by default.

var byteSuffix: String
Common
JVM
JS
Native
1.0

groupSeparator

Defines BytesHexFormat.groupSeparator of the format being built, two space characters (" ") by default.

var groupSeparator: String