public final class NBTInputStream
extends java.lang.Object
implements java.io.Closeable
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 http://www.minecraft.net/docs/NBT.txt.
Constructor and Description |
---|
NBTInputStream(java.io.InputStream is)
Creates a new
NBTInputStream , which will source its data
from the specified input stream. |
public NBTInputStream(java.io.InputStream is) throws java.io.IOException
NBTInputStream
, which will source its data
from the specified input stream.is
- The input stream.java.io.IOException
- if an I/O error occurs.public Tag readTag() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException