FilteredNBTInputStream

public class FilteredNBTInputStream extends NBTInputStream

A stream for decoding and serializing NBT data, with the option to provide a filter to be applied when reading compounds.

The class's featured method is readFully.

Author

Nullicorn

Constructors

Link copied to clipboard
public void FilteredNBTInputStream(InputStream inputStream)
Link copied to clipboard
public void FilteredNBTInputStream(    InputStream inputStream,     boolean internNames,     boolean internValues)

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)

public NBTCompound readFully(NBTFilter filter)
Reads an entire NBT compound from the stream.
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)