LinkedInputStream(H4header.SpecialLinked linked) throws IOException { List<H4header.TagLinkedBlock> linkedBlocks = linked.getLinkedDataBlocks(); nsegs = linkedBlocks.size(); segPosA = new long[nsegs]; segSizeA = new int[nsegs]; int count = 0; for (H4header.TagLinkedBlock tag : linkedBlocks) { segPosA[count] = tag.offset; segSizeA[count] = tag.length; count++; } }
LinkedInputStream(H4header.SpecialLinked linked) throws IOException { List<H4header.TagLinkedBlock> linkedBlocks = linked.getLinkedDataBlocks(); nsegs = linkedBlocks.size(); segPosA = new long[nsegs]; segSizeA = new int[nsegs]; int count = 0; for (H4header.TagLinkedBlock tag : linkedBlocks) { segPosA[count] = tag.offset; segSizeA[count] = tag.length; count++; } }
LinkedInputStream(H4header.SpecialLinked linked) throws IOException { List<H4header.TagLinkedBlock> linkedBlocks = linked.getLinkedDataBlocks(); nsegs = linkedBlocks.size(); segPosA = new long[nsegs]; segSizeA = new int[nsegs]; int count = 0; for (H4header.TagLinkedBlock tag : linkedBlocks) { segPosA[count] = tag.offset; segSizeA[count] = tag.length; count++; } }
void setLayoutInfo() throws IOException { if (data == null) return; if (null != data.linked) { isLinked = true; setDataBlocks(data.linked.getLinkedDataBlocks(), elemSize); } else if (null != data.compress) { isCompressed = true; TagData compData = data.compress.getDataTag(); tags.add(compData); isLinked = (compData.linked != null); if (isLinked) setDataBlocks(compData.linked.getLinkedDataBlocks(), elemSize); else { start = compData.offset; length = compData.length; hasNoData = (start < 0) || (length < 0); } } else if (null != data.chunked) { isChunked = true; chunks = data.chunked.getDataChunks(); chunkSize = data.chunked.chunk_length; isCompressed = data.chunked.isCompressed; } else { start = data.offset; hasNoData = (start < 0); } }
void setLayoutInfo() throws IOException { if (data == null) return; if (null != data.linked) { isLinked = true; setDataBlocks(data.linked.getLinkedDataBlocks(), elemSize); } else if (null != data.compress) { isCompressed = true; TagData compData = data.compress.getDataTag(); tags.add(compData); isLinked = (compData.linked != null); if (isLinked) setDataBlocks(compData.linked.getLinkedDataBlocks(), elemSize); else { start = compData.offset; length = compData.length; hasNoData = (start < 0) || (length < 0); } } else if (null != data.chunked) { isChunked = true; chunks = data.chunked.getDataChunks(); chunkSize = data.chunked.chunk_length; isCompressed = data.chunked.isCompressed; } else { start = data.offset; hasNoData = (start < 0); } }
void setLayoutInfo() throws IOException { if (data == null) return; if (null != data.linked) { isLinked = true; setDataBlocks(data.linked.getLinkedDataBlocks(), elemSize); } else if (null != data.compress) { isCompressed = true; TagData compData = data.compress.getDataTag(); tags.add(compData); isLinked = (compData.linked != null); if (isLinked) setDataBlocks(compData.linked.getLinkedDataBlocks(), elemSize); else { start = compData.offset; length = compData.length; hasNoData = (start < 0) || (length < 0); } } else if (null != data.chunked) { isChunked = true; chunks = data.chunked.getDataChunks(); chunkSize = data.chunked.chunk_length; isCompressed = data.chunked.isCompressed; } else { start = data.offset; hasNoData = (start < 0); } }