Package net.minecraft.src
Class CompressedStreamTools
java.lang.Object
net.minecraft.src.CompressedStreamTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]compress(NBTTagCompound par0NBTTagCompound) static NBTTagCompounddecompress(byte[] par0ArrayOfByte) static NBTTagCompoundReads from a CompressedStream.static NBTTagCompoundstatic NBTTagCompoundreadCompressed(InputStream par0InputStream) Load the gzipped compound from the inputstream.static voidsafeWrite(NBTTagCompound par0NBTTagCompound, File par1File) static voidwrite(NBTTagCompound par0NBTTagCompound, DataOutput par1DataOutput) static voidwrite(NBTTagCompound par0NBTTagCompound, File par1File) static voidwriteCompressed(NBTTagCompound par0NBTTagCompound, OutputStream par1OutputStream) Write the compound, gzipped, to the outputstream.
-
Constructor Details
-
CompressedStreamTools
public CompressedStreamTools()
-
-
Method Details
-
readCompressed
Load the gzipped compound from the inputstream.- Throws:
IOException
-
writeCompressed
public static void writeCompressed(NBTTagCompound par0NBTTagCompound, OutputStream par1OutputStream) throws IOException Write the compound, gzipped, to the outputstream.- Throws:
IOException
-
decompress
- Throws:
IOException
-
compress
- Throws:
IOException
-
safeWrite
- Throws:
IOException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
read
Reads from a CompressedStream.- Throws:
IOException
-
write
public static void write(NBTTagCompound par0NBTTagCompound, DataOutput par1DataOutput) throws IOException - Throws:
IOException
-