Uses of Class
org.refcodes.serial.StringSegment
-
Uses of StringSegment in org.refcodes.serial
Methods in org.refcodes.serial that return StringSegmentModifier and TypeMethodDescriptionStringSegment.Builder.build()
Builds the accordingly configuredStringSegment
instance.static StringSegment
SerialSugar.stringSegment()
Constructs aStringSegment
.static StringSegment
SerialSugar.stringSegment
(int aLengthWidth) Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static StringSegment
SerialSugar.stringSegment
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static StringSegment
SerialSugar.stringSegment
(String aValue) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aValue, int aLengthWidth) Constructs aStringSegment
with the givenString
payload* being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, int aLengthWidth) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, Charset aEncoding) static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, Charset aEncoding, int aLengthWidth) static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aAlias, String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment
SerialSugar.stringSegment
(String aValue, Charset aEncoding) static StringSegment
SerialSugar.stringSegment
(String aValue, Charset aEncoding, int aLengthWidth) static StringSegment
SerialSugar.stringSegment
(String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) static StringSegment
SerialSugar.stringSegment
(String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) static StringSegment
SerialSugar.stringSegment
(String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
SerialSugar.stringSegment
(String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment
SerialSugar.stringSegment
(Charset aEncoding) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
SerialSugar.stringSegment
(Charset aEncoding, int aLengthWidth) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
SerialSugar.stringSegment
(Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
SerialSugar.stringSegment
(Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
SerialSugar.stringSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static StringSegment
SerialSugar.stringSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.StringSegment.withPayload
(String aValue)