Package net.kyori.adventure.nbt
Interface BinaryTagIO.Writer
-
- Enclosing class:
- BinaryTagIO
public static interface BinaryTagIO.Writer
CompoundBinaryTag
writer.- Since:
- 4.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
write(@NotNull CompoundBinaryTag tag, @NotNull DataOutput output)
Writes a binary tag tooutput
.default void
write(@NotNull CompoundBinaryTag tag, @NotNull OutputStream output)
Writes a binary tag tooutput
.void
write(@NotNull CompoundBinaryTag tag, @NotNull OutputStream output, @NotNull BinaryTagIO.Compression compression)
Writes a binary tag tooutput
with acompression
type.default void
write(@NotNull CompoundBinaryTag tag, @NotNull Path path)
Writes a binary tag topath
with acompression
type.void
write(@NotNull CompoundBinaryTag tag, @NotNull Path path, @NotNull BinaryTagIO.Compression compression)
Writes a binary tag topath
with acompression
type.void
writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull DataOutput output)
Writes a binary tag, with a name, tooutput
.default void
writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull OutputStream output)
Writes a binary tag, with a name, tooutput
.void
writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull OutputStream output, @NotNull BinaryTagIO.Compression compression)
Writes a binary tag, with a name, tooutput
with acompression
type.default void
writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull Path path)
Writes a binary tag, with a name, topath
.void
writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull Path path, @NotNull BinaryTagIO.Compression compression)
Writes a binary tag, with a name, topath
with acompression
type.
-
-
-
Method Detail
-
write
default void write(@NotNull @NotNull CompoundBinaryTag tag, @NotNull @NotNull Path path) throws IOException
Writes a binary tag topath
with acompression
type.This is the equivalent of passing
Compression#NONE
as the second parameter towrite(CompoundBinaryTag, Path, Compression)
.- Parameters:
tag
- the tag to writepath
- the path- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
write
void write(@NotNull @NotNull CompoundBinaryTag tag, @NotNull @NotNull Path path, @NotNull @NotNull BinaryTagIO.Compression compression) throws IOException
Writes a binary tag topath
with acompression
type.- Parameters:
tag
- the tag to writepath
- the pathcompression
- the compression type- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
write
default void write(@NotNull @NotNull CompoundBinaryTag tag, @NotNull @NotNull OutputStream output) throws IOException
Writes a binary tag tooutput
.This is the equivalent of passing
BinaryTagIO.Compression.NONE
as the second parameter towrite(CompoundBinaryTag, OutputStream, Compression)
.- Parameters:
tag
- the tag to writeoutput
- the output stream- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
write
void write(@NotNull @NotNull CompoundBinaryTag tag, @NotNull @NotNull OutputStream output, @NotNull @NotNull BinaryTagIO.Compression compression) throws IOException
Writes a binary tag tooutput
with acompression
type.- Parameters:
tag
- the tag to writeoutput
- the output streamcompression
- the compression type- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
write
void write(@NotNull @NotNull CompoundBinaryTag tag, @NotNull @NotNull DataOutput output) throws IOException
Writes a binary tag tooutput
.- Parameters:
tag
- the tag to writeoutput
- the output- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
writeNamed
default void writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull @NotNull Path path) throws IOException
Writes a binary tag, with a name, topath
.This is the equivalent of passing
Compression#NONE
as the second parameter towrite(CompoundBinaryTag, Path, Compression)
.- Parameters:
tag
- the named tag entry to writepath
- the path- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
writeNamed
void writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull @NotNull Path path, @NotNull @NotNull BinaryTagIO.Compression compression) throws IOException
Writes a binary tag, with a name, topath
with acompression
type.- Parameters:
tag
- the named tag entry to writepath
- the pathcompression
- the compression type- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
writeNamed
default void writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull @NotNull OutputStream output) throws IOException
Writes a binary tag, with a name, tooutput
.This is the equivalent of passing
Compression#NONE
as the second parameter towrite(CompoundBinaryTag, OutputStream, Compression)
.- Parameters:
tag
- the named tag entry to writeoutput
- the output stream- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
writeNamed
void writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull @NotNull OutputStream output, @NotNull @NotNull BinaryTagIO.Compression compression) throws IOException
Writes a binary tag, with a name, tooutput
with acompression
type.- Parameters:
tag
- the named tag entry to writeoutput
- the output streamcompression
- the compression type- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
writeNamed
void writeNamed(@NotNull Map.Entry<String,CompoundBinaryTag> tag, @NotNull @NotNull DataOutput output) throws IOException
Writes a binary tag, with a name, tooutput
.- Parameters:
tag
- the named tag entry to writeoutput
- the output- Throws:
IOException
- if an exception was encountered while reading the tag- Since:
- 4.4.0
-
-