Class BinaryFormat
java.lang.Object
dev.siroshun.configapi.format.binary.BinaryFormat
- All Implemented Interfaces:
dev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
@NotNullByDefault
public final class BinaryFormat
extends Object
implements dev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
A
FileFormat implementation that loading/saving MapNode from/to binary format.
Supported Nodes:
ValueNodes excludingEnumValueArrayNode,ListNodeandMapNodeNullNodeCommentedNode- The comment will be dropped
For specifications of this format, please see the comments in the source code.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondev.siroshun.configapi.core.node.Node<?> load(InputStream input) dev.siroshun.configapi.core.node.Node<?> Deprecated.Not supporteddev.siroshun.configapi.core.node.Node<?> voidsave(dev.siroshun.configapi.core.node.Node<?> node, OutputStream output) voidDeprecated.Not supportedvoid
-
Field Details
-
DEFAULT
An instance ofBinaryFormat.
-
-
Method Details
-
load
- Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
load
- Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
save
- Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
save
public void save(dev.siroshun.configapi.core.node.Node<?> node, OutputStream output) throws IOException - Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
load
Deprecated.Not supported- Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
-
save
Deprecated.Not supported- Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
-