public class CompressedStreamTools extends Object
Constructor and Description |
---|
CompressedStreamTools() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(NBTTagCompound par0NBTTagCompound) |
static NBTTagCompound |
decompress(byte[] par0ArrayOfByte) |
static NBTTagCompound |
read(DataInput par0DataInput)
Reads from a CompressedStream.
|
static NBTTagCompound |
read(File par0File) |
static NBTTagCompound |
readCompressed(InputStream par0InputStream)
Load the gzipped compound from the inputstream.
|
static void |
safeWrite(NBTTagCompound par0NBTTagCompound,
File par1File) |
static void |
write(NBTTagCompound par0NBTTagCompound,
DataOutput par1DataOutput) |
static void |
write(NBTTagCompound par0NBTTagCompound,
File par1File) |
static void |
writeCompressed(NBTTagCompound par0NBTTagCompound,
OutputStream par1OutputStream)
Write the compound, gzipped, to the outputstream.
|
public static NBTTagCompound readCompressed(InputStream par0InputStream) throws IOException
IOException
public static void writeCompressed(NBTTagCompound par0NBTTagCompound, OutputStream par1OutputStream) throws IOException
IOException
public static NBTTagCompound decompress(byte[] par0ArrayOfByte) throws IOException
IOException
public static byte[] compress(NBTTagCompound par0NBTTagCompound) throws IOException
IOException
public static void safeWrite(NBTTagCompound par0NBTTagCompound, File par1File) throws IOException
IOException
public static NBTTagCompound read(DataInput par0DataInput) throws IOException
IOException
public static void write(NBTTagCompound par0NBTTagCompound, DataOutput par1DataOutput) throws IOException
IOException
public static void write(NBTTagCompound par0NBTTagCompound, File par1File) throws IOException
IOException
public static NBTTagCompound read(File par0File) throws IOException
IOException