System.out.println(" found intersecting dataSection: " + dataSection+" intersect= "+dataSection.intersect(want)); index = new IndexChunkerTiled(dataSection, want); // new indexer into this chunk next = new Chunk( dataChunk.getByteBuffer()); // this does the uncompression
index = new IndexChunkerTiled(dataSection, want); startSrcPos = dataChunk.filePos;
index = new IndexChunkerTiled(dataSection, want); startSrcPos = dataChunk.filePos;
@Test public void testChunkerTiled2() throws InvalidRangeException { Section dataSection = new Section("0:0, 40:59, 0:1353 "); Section wantSection = new Section("0:2, 22:3152,0:1350"); IndexChunkerTiled index = new IndexChunkerTiled(dataSection, wantSection); while(index.hasNext()) { Layout.Chunk chunk = index.next(); System.out.println(" "+chunk); } }
index = new IndexChunkerTiled(dataSection, want); startSrcPos = dataChunk.filePos;
@Test public void testChunkerTiled() throws InvalidRangeException { Section dataSection = new Section("0:0, 20:39, 0:1353 "); Section wantSection = new Section("0:2, 22:3152,0:1350"); IndexChunkerTiled index = new IndexChunkerTiled(dataSection, wantSection); while(index.hasNext()) { Layout.Chunk chunk = index.next(); System.out.println(" "+chunk); } }
System.out.println(" found intersecting dataSection: " + dataSection+" intersect= "+dataSection.intersect(want)); index = new IndexChunkerTiled(dataSection, want); // new indexer into this chunk next = new Chunk( dataChunk.getByteBuffer()); // this does the uncompression
System.out.println(" found intersecting dataSection: " + dataSection+" intersect= "+dataSection.intersect(want)); index = new IndexChunkerTiled(dataSection, want); // new indexer into this chunk next = new Chunk( dataChunk.getByteBuffer()); // this does the uncompression