Package com.sk89q.jnbt
Class NBTOutputStream
java.lang.Object
java.io.OutputStream
com.sk89q.jnbt.NBTOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
@Deprecated(forRemoval=true)
public final class NBTOutputStream
extends OutputStream
implements Closeable, DataOutput
Deprecated, for removal: This API element is subject to removal in a future version.
This class writes NBT, or Named Binary Tag
Tag objects to an underlying OutputStream.
The NBT format was created by Markus Persson, and the specification may be found at https://minecraft.gamepedia.com/NBT_format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, 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.Deprecated, for removal: This API element is subject to removal in a future version.Creates a newNBTOutputStream, which will write data to the specified underlying output stream.NBTOutputStream(OutputStream os, boolean littleEndian) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.voidflush()Deprecated, for removal: This API element is subject to removal in a future version.Flush output.Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(byte[] b) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(byte[] b, int off, int len) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(int b) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteBoolean(boolean v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteByte(int v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteBytes(String s) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteChar(int v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteChars(String s) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteDouble(double v) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidwriteFloat(float v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteInt(int v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteLazyCompoundTag(String name, NBTOutputStream.LazyWrite next) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteLong(long v) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedEmptyList(String name) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, byte value) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, byte[] bytes) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, int value) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, int[] data) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, long value) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, short value) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTag(String name, Tag<?, ?> tag) Deprecated, for removal: This API element is subject to removal in a future version.Writes a tag.voidwriteNamedTag(String name, String value) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteNamedTagName(String name, int type) Deprecated, for removal: This API element is subject to removal in a future version.voidwriteShort(int v) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidwriteTagPayload(Tag tag) Deprecated, for removal: This API element is subject to removal in a future version.Writes tag payload.voidDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
NBTOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newNBTOutputStream, which will write data to the specified underlying output stream.- Parameters:
os- The output stream.- Throws:
IOException- if an I/O error occurs.
-
NBTOutputStream
Deprecated, for removal: This API element is subject to removal in a future version. -
NBTOutputStream
Deprecated, for removal: This API element is subject to removal in a future version. -
NBTOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
-
Method Details
-
getOutputStream
Deprecated, for removal: This API element is subject to removal in a future version. -
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.Writes a tag.- Parameters:
tag- The tag to write.- Throws:
IOException- if an I/O error occurs.
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedEmptyList
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeNamedTagName
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeLazyCompoundTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeEndTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
writeTagPayload
Deprecated, for removal: This API element is subject to removal in a future version.Writes tag payload.- Parameters:
tag- The tag.- Throws:
IOException- if an I/O error occurs.
-
close
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writein interfaceDataOutput- Specified by:
writein classOutputStream- Throws:
IOException
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
writeBoolean
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeShort
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeChar
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException
-
writeInt
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeFloat
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeDouble
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeBytes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChars
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeUTF
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
flush
Deprecated, for removal: This API element is subject to removal in a future version.Flush output.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
LinBinaryIOinstead