Class ByteSerializer
java.lang.Object
org.drasyl.node.handler.serialization.ByteSerializer
- All Implemented Interfaces:
- Serializer
This Serializer (de)serializes 
Byte objects.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TfromByteArray(byte[] bytes, Class<T> type) Produces an object of typeTfrom an array of bytes.protected BytematchedFromByteArray(byte[] bytes, Class<Byte> type) protected byte[]byte[]Serializes the given object into an array of bytesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drasyl.node.handler.serialization.SerializerfromByteArray
- 
Constructor Details- 
ByteSerializerpublic ByteSerializer()
 
- 
- 
Method Details- 
matchedToByArray- Throws:
- IOException
 
- 
matchedFromByteArray- Throws:
- IOException
 
- 
toByteArrayDescription copied from interface:SerializerSerializes the given object into an array of bytes- Specified by:
- toByteArrayin interface- Serializer
- Throws:
- IOException- if deserialization to byte array fails
 
- 
fromByteArrayDescription copied from interface:SerializerProduces an object of typeTfrom an array of bytes.- Specified by:
- fromByteArrayin interface- Serializer
- Throws:
- IOException- if serialization to byte array fails
 
 
-