Package com.sk89q.jnbt
Class NBTInputStream
java.lang.Object
com.sk89q.jnbt.NBTInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Deprecated.
This class reads NBT, or Named Binary Tag
streams, and produces an object graph of subclasses of the
Tag
object.
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 newNBTInputStream
, which will source its data from the specified input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Deprecated.Reads an NBT tag from the stream.
-
Constructor Details
-
NBTInputStream
Deprecated.Creates a newNBTInputStream
, which will source its data from the specified input stream.- Parameters:
is
- the input stream
-
-
Method Details
-
readNamedTag
Deprecated.Reads an NBT tag from the stream.- Returns:
- The tag that was read.
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
LinBinaryIO
instead