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<?>>
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 TypeMethodDescription@NotNull dev.siroshun.configapi.core.node.Node<?>load(@NotNull InputStream input) @NotNull dev.siroshun.configapi.core.node.Node<?>Deprecated.Not supported@NotNull dev.siroshun.configapi.core.node.Node<?>voidsave(@NotNull dev.siroshun.configapi.core.node.Node<?> node, @NotNull OutputStream output) voidDeprecated.Not supportedvoid
-
Field Details
-
DEFAULT
An instance ofBinaryFormat.
-
-
Method Details
-
load
@NotNull public @NotNull dev.siroshun.configapi.core.node.Node<?> load(@NotNull @NotNull Path filepath) throws IOException - Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
load
@NotNull public @NotNull dev.siroshun.configapi.core.node.Node<?> load(@NotNull @NotNull InputStream input) throws IOException - Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
save
public void save(@NotNull @NotNull dev.siroshun.configapi.core.node.Node<?> node, @NotNull @NotNull Path filepath) throws IOException - Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
save
public void save(@NotNull @NotNull dev.siroshun.configapi.core.node.Node<?> node, @NotNull @NotNull OutputStream output) throws IOException - Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>- Throws:
IOException
-
load
@Deprecated @NotNull public @NotNull dev.siroshun.configapi.core.node.Node<?> load(@NotNull @NotNull Reader reader) Deprecated.Not supported- Specified by:
loadin interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
-
save
@Deprecated public void save(@NotNull @NotNull dev.siroshun.configapi.core.node.Node<?> node, @NotNull @NotNull Writer writer) Deprecated.Not supported- Specified by:
savein interfacedev.siroshun.configapi.core.file.FileFormat<dev.siroshun.configapi.core.node.Node<?>>
-