Class NBTInputStream

java.lang.Object
net.citizensnpcs.api.jnbt.NBTInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class NBTInputStream extends Object implements Closeable

This class reads NBT, or Named Binary Tag streams, and produces an object graph of subclasses of the Tag object.

The NBT format was created by Markus Persson, and the specification may be found at http://www.minecraft.net/docs/NBT.txt.

  • Constructor Details

    • NBTInputStream

      public NBTInputStream(InputStream is) throws IOException
      Creates a new NBTInputStream, which will source its data from the specified input stream.
      Parameters:
      is - The input stream.
      Throws:
      IOException - if an I/O error occurs.
  • Method Details