Minecraft wiki entry for Example_NBT_Class, associated text: writeTo(OutputStream os)
Description: Write a tag and its nested tags to an OutputStream.
os: Stream to write to, like a FileOutputStream.
Throws: IOException if this is not a valid NBT structure or if any IOException occurred.