public interface BaseCodecBuilder extends org.refcodes.mixin.VerifyModeAccessor.VerifyModeBuilder<BaseCodecBuilder>, org.refcodes.mixin.VerifyModeAccessor.VerifyModeProperty, BaseCodecMetricsAccessor.BaseCodecMetricsProperty, BaseCodecMetricsAccessor.BaseCodecMetricsBuilder<BaseCodecBuilder>
org.refcodes.mixin.VerifyModeAccessor.VerifyModeBuilder<B extends org.refcodes.mixin.VerifyModeAccessor.VerifyModeBuilder<B>>, org.refcodes.mixin.VerifyModeAccessor.VerifyModeMutator, org.refcodes.mixin.VerifyModeAccessor.VerifyModeProperty
BaseCodecMetricsAccessor.BaseCodecMetricsBuilder<B extends BaseCodecMetricsAccessor.BaseCodecMetricsBuilder<B>>, BaseCodecMetricsAccessor.BaseCodecMetricsMutator, BaseCodecMetricsAccessor.BaseCodecMetricsProperty
Modifier and Type | Method and Description |
---|---|
byte[] |
getDecodedData()
Retrieves the decoded data from the decoded data property.
|
String |
getEncodedText()
Retrieves the encoded text from the encoded text property.
|
default void |
setBaseCodecMetrics(int aNumberBase)
Sets the number base for the number base property.
|
void |
setDecodedData(byte[] aDecodedData)
Sets the decoded data for the decoded data property.
|
void |
setEncodedText(String aEncodedText)
Sets the encoded text for the encoded text property.
|
byte[] |
toDecodedData(String aEncodedText)
Retrieves the decoded data calculated from the provided encoded text.
|
String |
toEncodedText(byte[] aDecodedData)
Retrieves the encoded text calculated from the decoded data.
|
default BaseCodecBuilder |
withBaseCodecMetrics(BaseCodecMetrics aBaseMetricsCodec)
Sets the base codec metrics for the base codec metrics property.
|
default BaseCodecBuilder |
withBaseCodecMetrics(int aNumberBase)
Sets the number base for the number base property.
|
default BaseCodecBuilder |
withDecodedData(byte[] aDecodedData)
Sets the decoded data for the decoded data property.
|
default BaseCodecBuilder |
withEncodedText(String aEncodedText)
Sets the encoded text for the encoded text property.
|
withVerifyMode
setVerifyMode
getBaseCodecMetrics
setBaseCodecMetrics
default BaseCodecBuilder withBaseCodecMetrics(BaseCodecMetrics aBaseMetricsCodec)
BaseCodecMetricsAccessor.BaseCodecMetricsBuilder
withBaseCodecMetrics
in interface BaseCodecMetricsAccessor.BaseCodecMetricsBuilder<BaseCodecBuilder>
aBaseMetricsCodec
- The base codec metrics to be stored by the
font style property.default void setBaseCodecMetrics(int aNumberBase)
aNumberBase
- The number base to be stored by the text strip mode
property.default BaseCodecBuilder withBaseCodecMetrics(int aNumberBase)
aNumberBase
- The number base to be stored by the text strip mode
property.String getEncodedText()
String toEncodedText(byte[] aDecodedData)
BaseCodecMetrics
via
withBaseCodecMetrics(BaseCodecMetrics)
can cause side effects!
For avoiding thread race conditions / side effects regarding the decoded
data (and the encoded result), use this method instead of the combination
of withDecodedData(byte[])
with getEncodedText()
aDecodedData
- The decoded data to be encoded.void setEncodedText(String aEncodedText)
aEncodedText
- The encoded text to be stored by the encoded text
property.default BaseCodecBuilder withEncodedText(String aEncodedText)
aEncodedText
- The encoded text to be stored by the encoded text
property.byte[] getDecodedData()
byte[] toDecodedData(String aEncodedText)
BaseCodecMetrics
via
withBaseCodecMetrics(BaseCodecMetrics)
can cause side effects!
For avoiding thread race conditions / side effects regarding the encoded
text (and the decoded result), use this method instead of the combination
of withEncodedText(String)
with getDecodedData()
.aEncodedText
- The encoded text to be decoded.void setDecodedData(byte[] aDecodedData)
aDecodedData
- The decoded data to be stored by the decoded data
property.default BaseCodecBuilder withDecodedData(byte[] aDecodedData)
aDecodedData
- The decoded data to be stored by the decoded data
property.Copyright © 2016. All rights reserved.