| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
package org.tukaani.xz.index; |
| 6 |
|
| 7 |
public class BlockInfo { |
| 8 |
public int blockNumber = -1; |
| 9 |
public long compressedOffset = -1; |
| 10 |
public long uncompressedOffset = -1; |
| 11 |
public long unpaddedSize = -1; |
| 12 |
public long uncompressedSize = -1; |
| 13 |
|
| 14 |
IndexDecoder index; |
| 15 |
|
| 16 |
public BlockInfo(IndexDecoder indexOfFirstStream) { |
| 17 |
index = indexOfFirstStream; |
| 18 |
} |
| 19 |
|
| 20 |
public int getCheckType() { |
| 21 |
return index.getStreamFlags().checkType; |
| 22 |
} |
| 23 |
|
| 24 |
public boolean hasNext() { |
| 25 |
return index.hasRecord(blockNumber + 1); |
| 26 |
} |
| 27 |
|
| 28 |
public void setNext() { |
| 29 |
index.setBlockInfo(this, blockNumber + 1); |
| 30 |
} |
| 31 |
} |