|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jnbt.NBTInputStream
public final class NBTInputStream
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 Summary | |
---|---|
NBTInputStream(InputStream is)
Creates a new NBTInputStream , which will source its data
from the specified input stream. |
Method Summary | |
---|---|
void |
close()
|
Tag |
readTag()
Reads an NBT tag from the stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public Tag readTag() throws IOException
IOException
- if an I/O error occurs.public void close() throws IOException
close
in interface Closeable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |