Package com.sk89q.jnbt
Class NBTInputStream
java.lang.Object
com.sk89q.jnbt.NBTInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
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 https://minecraft.gamepedia.com/NBT_format.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Creates a newNBTInputStream, which will source its data from the specified input stream.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.static intgetSize(int type) Deprecated, for removal: This API element is subject to removal in a future version.voidmark(int mark) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Reads an NBT tag from the stream.voidreadNamedTagLazy(StreamDelegate scope) Deprecated, for removal: This API element is subject to removal in a future version.readNamedTagName(int type) Deprecated, for removal: This API element is subject to removal in a future version.readTag()Deprecated, for removal: This API element is subject to removal in a future version.readTagPayload(int type, int depth) Deprecated, for removal: This API element is subject to removal in a future version.Reads the payload of a tag given the type.voidreadTagPayloadLazy(int type, int depth) Deprecated, for removal: This API element is subject to removal in a future version.voidreadTagPayloadLazy(int type, int depth, StreamDelegate scope) Deprecated, for removal: This API element is subject to removal in a future version.readTagPayloadRaw(int type, int depth) Deprecated, for removal: This API element is subject to removal in a future version.voidreset()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor Details- 
NBTInputStreamDeprecated, for removal: This API element is subject to removal in a future version.Creates a newNBTInputStream, which will source its data from the specified input stream.- Parameters:
- is- the input stream
 
- 
NBTInputStreamDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
markpublic void mark(int mark) Deprecated, for removal: This API element is subject to removal in a future version.
- 
resetDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readNamedTagDeprecated, for removal: This API element is subject to removal in a future version.Reads an NBT tag from the stream.- Returns:
- The tag that was read.
- Throws:
- IOException
 
- 
readTagDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readNamedTagLazyDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readNamedTagNameDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readTagPayloadLazyDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readTagPayloadLazyDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
getSizepublic static int getSize(int type) Deprecated, for removal: This API element is subject to removal in a future version.
- 
readTagPayloadRawDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
- 
readTagPayloadDeprecated, for removal: This API element is subject to removal in a future version.Reads the payload of a tag given the type.- Parameters:
- type- the type
- depth- the depth
- Returns:
- the tag
- Throws:
- IOException- if an I/O error occurs.
 
- 
closeDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
toIteratorDeprecated, for removal: This API element is subject to removal in a future version.
- 
dataInputStreamDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
LinBinaryIOinstead