public class StructureSerializationServiceImpl
extends java.lang.Object
implements com.github.shynixn.structureblocklib.api.service.StructureSerializationService
| Constructor and Description |
|---|
StructureSerializationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deSerialize(java.io.InputStream inputStream)
Deserializes the
InputStream to an NMS handle of DefinedStructure. |
void |
serialize(java.lang.Object definedStructure,
java.io.OutputStream outputStream)
Serializes the NMS handle of DefinedStructure to an
OutputStream. |
public java.lang.Object deSerialize(java.io.InputStream inputStream)
throws java.io.IOException
InputStream to an NMS handle of DefinedStructure.
This call is blocking.deSerialize in interface com.github.shynixn.structureblocklib.api.service.StructureSerializationServiceinputStream - Opened inputStream. Does not close the stream after processing.java.io.IOExceptionpublic void serialize(java.lang.Object definedStructure,
java.io.OutputStream outputStream)
throws java.io.IOException
OutputStream.
This call is blocking.serialize in interface com.github.shynixn.structureblocklib.api.service.StructureSerializationServicedefinedStructure - NMS handle.outputStream - Opened outputStream. Does not close the stream after processing.java.io.IOException