|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jnbt.NBTOutputStream
public final class NBTOutputStream
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 http://www.minecraft.net/docs/NBT.txt.
Constructor Summary | |
---|---|
NBTOutputStream(OutputStream os)
Creates a new NBTOutputStream , which will write data to the
specified underlying output stream. |
Method Summary | |
---|---|
void |
close()
|
void |
writeTag(Tag tag)
Writes a tag. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NBTOutputStream(OutputStream os) throws IOException
NBTOutputStream
, which will write data to the
specified underlying output stream.
os
- The output stream.
IOException
- if an I/O error occurs.Method Detail |
---|
public void writeTag(Tag tag) throws IOException
tag
- The tag to write.
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 |