public final class NBTInputStream extends Object implements 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(InputStream is)
Creates a new
NBTInputStream, which will source its data
from the specified input stream. |
public NBTInputStream(InputStream is) throws IOException
NBTInputStream, which will source its data
from the specified input stream.is - The input stream.IOException - if an I/O error occurs.public Tag readTag() throws IOException
IOException - if an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2010-2014. All Rights Reserved.