Class NBTOutputStream

java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.nbt.NBTOutputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class NBTOutputStream extends Object implements Closeable

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.

Author:
Graham Edgecombe
  • Constructor Details

    • NBTOutputStream

      public NBTOutputStream(OutputStream os) throws IOException
      Creates a new NBTOutputStream, 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