Package org.djutils.data.serialization
Class ByteSerializer
- java.lang.Object
 - 
- org.djutils.data.serialization.ByteSerializer
 
 
- 
- All Implemented Interfaces:
 TextSerializer<Byte>
public class ByteSerializer extends Object implements TextSerializer<Byte>
ByteSerializer (de)serializes Byte objects.
Copyright (c) 2020-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.- Author:
 - Alexander Verbraeck, Peter Knoppers, Wouter Schakel
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ByteSerializer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bytedeserialize(String text)Deserialize a value from text that has been created with the corresponding serializer.Stringserialize(Object value)Serialize a value to text in such a way that it can be deserialized with the corresponding deserializer. 
 - 
 
- 
- 
Method Detail
- 
serialize
public String serialize(Object value)
Serialize a value to text in such a way that it can be deserialized with the corresponding deserializer.- Specified by:
 serializein interfaceTextSerializer<Byte>- Parameters:
 value- Object; the value to serialize- Returns:
 - String; a string representation of the value that can later be deserialized
 
 
- 
deserialize
public Byte deserialize(String text)
Deserialize a value from text that has been created with the corresponding serializer.- Specified by:
 deserializein interfaceTextSerializer<Byte>- Parameters:
 text- String; the string to deserialize- Returns:
 - T; an instance of the object created with the corresponding serializer
 
 
 - 
 
 -