public final class NBTOutputStream extends Object implements Closeable
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 and Description |
|---|
NBTOutputStream(OutputStream os)
Creates a new
NBTOutputStream, which will write data to the
specified underlying output stream. |
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.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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2010-2014. All Rights Reserved.