Interface StructureSerializationService
public interface StructureSerializationService
Serialization service.
-
Method Summary
Modifier and TypeMethodDescriptiondeSerialize(InputStream inputStream) Deserializes theInputStreamto an NMS handle of DefinedStructure.voidserialize(Object definedStructure, OutputStream outputStream) Serializes the NMS handle of DefinedStructure to anOutputStream.
-
Method Details
-
deSerialize
Deserializes theInputStreamto an NMS handle of DefinedStructure. This call is blocking.- Parameters:
inputStream- Opened inputStream. Does not close the stream after processing.- Returns:
- A new NMS instance of DefinedStructure.
- Throws:
IOException
-
serialize
Serializes the NMS handle of DefinedStructure to anOutputStream. This call is blocking.- Parameters:
definedStructure- NMS handle.outputStream- Opened outputStream. Does not close the stream after processing.- Throws:
IOException
-