public class NBTInputStream
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
NBTInputStream(java.io.DataInput input) |
NBTInputStream(java.io.DataInput input,
boolean internKeys,
boolean internValues) |
NBTInputStream(java.io.DataInput input,
boolean internKeys,
boolean internValues,
long maxReadSize) |
NBTInputStream(java.io.DataInput input,
long maxReadSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Object |
readTag() |
java.lang.Object |
readTag(int maxDepth) |
<T> T |
readValue(NbtType<T> type) |
<T> T |
readValue(NbtType<T> type,
int maxDepth) |
public NBTInputStream(java.io.DataInput input,
boolean internKeys,
boolean internValues)
public NBTInputStream(java.io.DataInput input,
boolean internKeys,
boolean internValues,
long maxReadSize)
public NBTInputStream(java.io.DataInput input)
public NBTInputStream(java.io.DataInput input,
long maxReadSize)
public java.lang.Object readTag()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object readTag(int maxDepth)
throws java.io.IOException
java.io.IOExceptionpublic <T> T readValue(NbtType<T> type) throws java.io.IOException
java.io.IOExceptionpublic <T> T readValue(NbtType<T> type, int maxDepth) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException