private static IOServiceProvider getIOSpi(byte[] buffer) { IOServiceProvider spi = null; if (testMagicBytes(buffer, NC3_MAGIC)) { spi = new N3raf(); } else if (testMagicBytes(buffer, NC3_MAGIC_LONG)) { spi = new N3raf(); } else if (testMagicBytes(buffer, H4_MAGIC)) { spi = new H4iosp(); } else if (testMagicBytes(buffer, H5_MAGIC)) { spi = new H5iosp(); } return spi; }
public Array readData(Variable v, Section section) throws IOException, InvalidRangeException { if (v instanceof Structure) return readStructureData((Structure) v, section); if (showLayoutTypes) System.out.println("***notLinked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); if (showLayoutTypes) System.out.println("***Linked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue);
InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section);
public Array readData(Variable v, Section section) throws IOException, InvalidRangeException { if (v instanceof Structure) return readStructureData((Structure) v, section); if (showLayoutTypes) System.out.println("***notLinked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); if (showLayoutTypes) System.out.println("***Linked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue);
InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section);
public Array readData(Variable v, Section section) throws IOException, InvalidRangeException { if (v instanceof Structure) return readStructureData((Structure) v, section); if (showLayoutTypes) System.out.println("***notLinked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); if (showLayoutTypes) System.out.println("***Linked, compressed"); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue);
InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section);