public boolean tryLoad(Chunk chunk) { CompressedChunk c = chunks.get(chunk.getPosition()); if (c != null) { long start = TimeStatistics.TIME_STATISTICS.start(); try { // byteIn = new // ByteArrayInputStream(DeflaterWrapper.decompress(c.getData())); DeflaterWrapper.decompress(c.getData(), chunk.getDataXZY()); } catch (IOException | DataFormatException ex) { throw new RuntimeException(ex); } // DataInputStream dataIn = new DataInputStream(byteIn); // compressor.decompress(dataIn, chunk.getDataXZY()); chunk.setVersion(c.getVersion()); TimeStatistics.TIME_STATISTICS.end(start, "load"); return true; } return false; }