Package com.sk89q.jnbt
Class NBTOutputStream
java.lang.Object
com.sk89q.jnbt.NBTOutputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Deprecated.
This class writes NBT, or Named Binary Tag
Tag
objects to an underlying OutputStream
.
The NBT format was created by Markus Persson, and the specification may be found at https://minecraft.wiki/w/NBT_format.
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a newNBTOutputStream
, which will write data to the specified underlying output stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.void
writeNamedTag
(String name, Tag<?, ?> tag) Deprecated.Writes a tag.
-
Constructor Details
-
NBTOutputStream
Deprecated.Creates a newNBTOutputStream
, which will write data to the specified underlying output stream.- Parameters:
os
- The output stream.
-
-
Method Details
-
writeNamedTag
Deprecated.Writes a tag.- Parameters:
tag
- The tag to write.- Throws:
IOException
- if an I/O error occurs.
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
LinBinaryIO
instead