NBTInputStream

public class NBTInputStream extends DataInputStream

An InputStream that reads and deserializes binary data in the NBT format

Author

Nullicorn

Constructors

Link copied to clipboard
public void NBTInputStream(InputStream inputStream)
Same as NBTInputStream, but all interning is disabled by default
Link copied to clipboard
public void NBTInputStream(    InputStream inputStream,     boolean internNames,     boolean internValues)
Constructs a stream for reading NBT data, with control over interning of parsed strings.

Functions

Link copied to clipboard
public int available()
Link copied to clipboard
public void close()
Link copied to clipboard
public synchronized void gunzipIfNecessary()
Check if the underlying InputStream contains gzipped data.
Link copied to clipboard
public synchronized void mark(int readlimit)
Link copied to clipboard
public boolean markSupported()
Link copied to clipboard
public static InputStream nullInputStream()
Link copied to clipboard
public final int read(Array<byte> b)
Link copied to clipboard
public Array<byte> readAllBytes()
Link copied to clipboard
public final boolean readBoolean()
Link copied to clipboard
public final byte readByte()
Link copied to clipboard
public Array<byte> readByteArray()
Read a TAG_Byte_Array from the inputStream
Link copied to clipboard
public final char readChar()
Link copied to clipboard
public NBTCompound readCompound()
Read a TAG_Compound from the inputStream
Link copied to clipboard
public final double readDouble()
Link copied to clipboard
public final float readFloat()
Link copied to clipboard
public NBTCompound readFully()
Read an NBT compound from the inputStream
public final void readFully(Array<byte> b)
Link copied to clipboard
public final int readInt()
Link copied to clipboard
public Array<int> readIntArray()
Read a TAG_Int_Array from the inputStream
Link copied to clipboard
public final String readLine()
Link copied to clipboard
public NBTList readList()
Read a TAG_List from the inputStream
Link copied to clipboard
public final long readLong()
Link copied to clipboard
public Array<long> readLongArray()
Read a TAG_Long_Array from the inputStream
Link copied to clipboard
public Array<byte> readNBytes(int len)
public int readNBytes(    Array<byte> b,     int off,     int len)
Link copied to clipboard
public final short readShort()
Link copied to clipboard
public String readString()
Same as readString, but the resulting string will never be interned.
public String readString(boolean intern)
Read a length-prefixed string from the inputStream
Link copied to clipboard
public TagType readTagId()
Read an NBT tag ID from the inputStream
Link copied to clipboard
public final int readUnsignedByte()
Link copied to clipboard
public final int readUnsignedShort()
Link copied to clipboard
public final String readUTF()
Link copied to clipboard
public Object readValue(TagType tagType)
Read a NBT value from the inputStream as the specified type
Link copied to clipboard
public synchronized void reset()
Link copied to clipboard
public long skip(long n)
Link copied to clipboard
public final int skipBytes(int n)
Link copied to clipboard
public long transferTo(OutputStream out)

Inheritors

Link copied to clipboard