Package net.citizensnpcs.api.jnbt
Class NBTOutputStream
java.lang.Object
net.citizensnpcs.api.jnbt.NBTOutputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
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
ConstructorDescriptionCreates a newNBTOutputStream
, which will write data to the specified underlying output stream. -
Method Summary
-
Constructor Details
-
NBTOutputStream
Creates a newNBTOutputStream
, which will write data to the specified underlying output stream.- Parameters:
os
- The output stream.- Throws:
IOException
- if an I/O error occurs.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
writeTag
Writes a tag.- Parameters:
tag
- The tag to write.- Throws:
IOException
- if an I/O error occurs.
-