Code example for InflaterInputStream

0
            byte[] data = new byte[length - 1];
            if (dataStream.read(data) < length - 1) {
                throw new DataException("MCRegion file does not contain " 
                        + x + "," + z + " in full");
            } 
            return new InflaterInputStream(new ByteArrayInputStream(data));
        } else { 
            throw new DataException("MCRegion chunk at " 
                    + x + "," + z + " has an unsupported version of " + version);
        } 
    } 
 
    /** 
     * Get the offset for a chunk. May return 0 if it doesn't exist. 
     *  
     * @param x 
     * @param z 
     * @return 
     */ 
    private int getOffset(int x, int z) {
Stop searching for code, let great code find you!  Add Codota to your java IDE