Package com.codeski.nbt
Class NBTWriter
- java.lang.Object
-
- com.codeski.nbt.NBTWriter
-
public class NBTWriter extends java.lang.ObjectClass for writing NBT structures as NBT, JSON, or XML.
-
-
Constructor Summary
Constructors Constructor Description NBTWriter(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteJSON(NBT root)Writes the tag specified and its children as JSON text.voidwriteNBT(NBT root)Writes the tag specified and its children as NBT binary data.voidwriteXML(NBT root)Writes the tag specified and its children as XML text.
-
-
-
Method Detail
-
writeJSON
public void writeJSON(NBT root) throws java.io.IOException
Writes the tag specified and its children as JSON text.- Throws:
java.io.IOException
-
writeNBT
public void writeNBT(NBT root) throws java.io.IOException
Writes the tag specified and its children as NBT binary data.- Throws:
java.io.IOException
-
writeXML
public void writeXML(NBT root) throws java.io.IOException
Writes the tag specified and its children as XML text.- Throws:
java.io.IOException
-
-