java.lang.Object
at.syntaxerror.syntaxnbt.internal.NBTCompressionUtil
A utility class for gzip and zlib compression
- Author:
- SyntaxError404
-
Method Summary
Modifier and TypeMethodDescriptionstatic NBTCompressionfindCompression(InputStream stream) Determines the compression of the stream.
-
Method Details
-
findCompression
Determines the compression of the stream. The stream must supportInputStream.mark(int)andInputStream.reset()- Parameters:
stream- stream to be decompressed- Returns:
- the compression scheme
- Throws:
IOException- if an I/O error occured
-