public final class BinaryTagIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readCompressedInputStream(@NotNull InputStream input)
Reads a compound tag from an input stream using GZIP decompression.
|
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readCompressedPath(@NotNull Path path)
Reads a compound tag from
path using GZIP decompression. |
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readDataInput(@NotNull DataInput input)
Reads a compound tag from
input. |
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readInputStream(@NotNull InputStream input)
Reads a compound tag from an input stream.
|
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readPath(@NotNull Path path)
Reads a compound tag from
path. |
static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag |
readString(@NotNull String input)
Reads a compound tag from a
String. |
static void |
writeCompressedOutputStream(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull OutputStream output)
Writes a compound tag to an output stream using GZIP compression.
|
static void |
writeCompressedPath(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull Path path)
Writes a compound tag to
path using GZIP compression. |
static void |
writeDataOutput(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull DataOutput output)
Writes a compound tag to
output. |
static void |
writeOutputStream(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull OutputStream output)
Writes a compound tag to an output stream.
|
static void |
writePath(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull Path path)
Writes a compound tag to
path. |
static @NotNull String |
writeString(@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
Writes a compound tag to a
String. |
@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readPath(@NotNull
@NotNull Path path)
throws IOException
path.path - the pathIOException - if an exception was encountered while reading a compound tag@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readInputStream(@NotNull
@NotNull InputStream input)
throws IOException
input - the input streamIOException - if an exception was encountered while reading a compound tag@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readCompressedPath(@NotNull
@NotNull Path path)
throws IOException
path using GZIP decompression.path - the pathIOException - if an exception was encountered while reading a compound tag@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readCompressedInputStream(@NotNull
@NotNull InputStream input)
throws IOException
input - the input streamIOException - if an exception was encountered while reading a compound tag@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readDataInput(@NotNull
@NotNull DataInput input)
throws IOException
input.input - the inputIOException - if an exception was encountered while reading a compound tagpublic static void writePath(@NotNull
@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull
@NotNull Path path)
throws IOException
path.tag - the compound tagpath - the pathIOException - if an exception was encountered while writing the compound tagpublic static void writeOutputStream(@NotNull
@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull
@NotNull OutputStream output)
throws IOException
tag - the compound tagoutput - the output streamIOException - if an exception was encountered while writing the compound tagpublic static void writeCompressedPath(@NotNull
@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull
@NotNull Path path)
throws IOException
path using GZIP compression.tag - the compound tagpath - the pathIOException - if an exception was encountered while writing the compound tagpublic static void writeCompressedOutputStream(@NotNull
@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull
@NotNull OutputStream output)
throws IOException
tag - the compound tagoutput - the output streamIOException - if an exception was encountered while writing the compound tagpublic static void writeDataOutput(@NotNull
@NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
@NotNull
@NotNull DataOutput output)
throws IOException
output.tag - the compound tagoutput - the outputIOException - if an exception was encountered while writing the compound tag@NotNull
public static @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag readString(@NotNull
@NotNull String input)
throws IOException
String.input - the stringIOException - if an exception was encountered while reading a compound tag@NotNull public static @NotNull String writeString(@NotNull @NotNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) throws IOException
String.tag - the compound tagIOException - if an exception was encountered while writing the compound tagCopyright © 2016–2021. All rights reserved.