static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder, boolean convertChar) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, convertChar); }
static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder, boolean convertChar) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, convertChar); }
static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder, boolean convertChar) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, convertChar); }
/** * Read data subset from ByteBuffer, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param layout handles skipping around in the file, provide ByteBuffer to read from * @param dataType dataType of the variable * @param fillValue must be Number if dataType.isNumeric(), or String for STRING, byte[] for Structure, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(LayoutBB layout, DataType dataType, Object fillValue) throws java.io.IOException { long size = layout.getTotalNelems(); if (dataType == DataType.STRUCTURE) size *= layout.getElemSize(); Object arr = (fillValue == null) ? makePrimitiveArray((int) size, dataType) : makePrimitiveArray((int) size, dataType, fillValue); return readData(layout, dataType, arr); }
/** * Read data subset from PositioningDataInputStream, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param is read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(PositioningDataInputStream is, Layout index, DataType dataType, Object fillValue) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(is, index, dataType, arr); }
/** * Read data subset from PositioningDataInputStream, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param is read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(PositioningDataInputStream is, Layout index, DataType dataType, Object fillValue) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(is, index, dataType, arr); }
/** * Read data subset from PositioningDataInputStream, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param is read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must be Number if dataType.isNumeric(), or String for STRING, byte[] for Structure, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(PositioningDataInputStream is, Layout index, DataType dataType, Object fillValue) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(is, index, dataType, arr); }
/** * Read data subset from ByteBuffer, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param layout handles skipping around in the file, privide ByteBuffer to read from * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(LayoutBB layout, DataType dataType, Object fillValue) throws java.io.IOException { long size = layout.getTotalNelems(); if (dataType == DataType.STRUCTURE) size *= layout.getElemSize(); Object arr = (fillValue == null) ? makePrimitiveArray((int) size, dataType) : makePrimitiveArray((int) size, dataType, fillValue); return readData(layout, dataType, arr); }
/** * Read data subset from ByteBuffer, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param layout handles skipping around in the file, privide ByteBuffer to read from * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(LayoutBB layout, DataType dataType, Object fillValue) throws java.io.IOException { long size = layout.getTotalNelems(); if (dataType == DataType.STRUCTURE) size *= layout.getElemSize(); Object arr = (fillValue == null) ? makePrimitiveArray((int) size, dataType) : makePrimitiveArray((int) size, dataType, fillValue); return readData(layout, dataType, arr); }
/** * Read data subset from RandomAccessFile, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param raf read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @param byteOrder if equal to RandomAccessFile.ORDER_XXXX, set the byte order just before reading * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, true); }
/** * Read data subset from RandomAccessFile, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param raf read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must Byte, Short, Integer, Long, Float, Double, or String, matching dataType, or null for none * @param byteOrder if equal to RandomAccessFile.ORDER_XXXX, set the byte order just before reading * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, true); }
/** * Read data subset from RandomAccessFile, create primitive array of size Layout.getTotalNelems. * Reading is controlled by the Layout object. * * @param raf read from here. * @param index handles skipping around in the file. * @param dataType dataType of the variable * @param fillValue must be Number if dataType.isNumeric(), or String for STRING, byte[] for Structure, or null for none * @param byteOrder if equal to RandomAccessFile.ORDER_XXXX, set the byte order just before reading * @return primitive array with data read in * @throws java.io.IOException on read error */ static public Object readDataFill(RandomAccessFile raf, Layout index, DataType dataType, Object fillValue, int byteOrder) throws java.io.IOException { Object arr = (fillValue == null) ? makePrimitiveArray((int) index.getTotalNelems(), dataType) : makePrimitiveArray((int) index.getTotalNelems(), dataType, fillValue); return readData(raf, index, dataType, arr, byteOrder, true); }
Object arr = (vinfo.fillValue == null) ? IospHelper.makePrimitiveArray((int) section.computeSize(), dataType) : IospHelper.makePrimitiveArray((int) section.computeSize(), dataType, vinfo.fillValue); if (dataType == DataType.CHAR) arr = IospHelper.convertByteToChar((byte[]) arr);
Object arr = (vinfo.fillValue == null) ? IospHelper.makePrimitiveArray((int) section.computeSize(), dataType) : IospHelper.makePrimitiveArray((int) section.computeSize(), dataType, vinfo.fillValue); if (dataType == DataType.CHAR) arr = IospHelper.convertByteToChar((byte[]) arr);
Object arr = (vinfo.fillValue == null) ? IospHelper.makePrimitiveArray((int) section.computeSize(), dataType) : IospHelper.makePrimitiveArray((int) section.computeSize(), dataType, vinfo.fillValue); if (dataType == DataType.CHAR) arr = IospHelper.convertByteToChar((byte[]) arr);
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa);
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa);
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa);