Class Encoder.HexEncoder
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Encoder.HexEncoder
- All Implemented Interfaces:
JsonSerializable,RecordSerializable,Encoder<String,String>
An
Encoder that converts strings to and from the hexadecimal form of their UTF-8 bytes;
null and empty strings are returned unchanged.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.northconcepts.datapipeline.foundations.core.Encoder
Encoder.HexEncoder, Encoder.NullEncoder -
Field Summary
Fields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the encoded form of the value;Encoder.decode(Object)must turn it back into the original.fromRecord(Record source) Loads this instance's state from a record and returnsthis(for fluid API call chaining).toRecord()Converts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.
-
Constructor Details
-
HexEncoder
public HexEncoder()
-
-
Method Details
-
encode
Description copied from interface:EncoderReturns the encoded form of the value;Encoder.decode(Object)must turn it back into the original. -
decode
-
fromRecord
Description copied from interface:RecordSerializableLoads this instance's state from a record and returnsthis(for fluid API call chaining). For fluid API call chaining, the overridden method should change the declared return type to its class.- Specified by:
fromRecordin interfaceRecordSerializable- Parameters:
source-- Returns:
- this instance.
-
toRecord
Description copied from interface:RecordSerializableConverts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.- Specified by:
toRecordin interfaceRecordSerializable
-