@Test void testUnsupportedReferenceLengthThrows() { Reference invalidDataType = mockReference(11); HdfFileChannel hdfFc = mock(HdfFileChannel.class); assertThrows(HdfTypeException.class, () -> invalidDataType.fillData(referenceIntBuffer, dims, hdfFc)); verifyNoInteractions(hdfFc); }
@Override public Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc) { final Object data = Array.newInstance(getJavaType(), dimensions); fillData(data, dimensions, buffer.order(ByteOrder.LITTLE_ENDIAN)); return data; }
Reference extends DataType { @Override public Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc) { final Object data = Array.newInstance(getJavaType(), dimensions); fillData(data, dimensions, buffer.order(ByteOrder.LITTLE_ENDIAN)); return data; } }
Reference extends DataType { @Override public Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc) { final Object data = Array.newInstance(getJavaType(), dimensions); fillData(data, dimensions, buffer.order(ByteOrder.LITTLE_ENDIAN)); return data; } Reference(ByteBuffer bb); }
Reference extends DataType { @Override public Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc) { final Object data = Array.newInstance(getJavaType(), dimensions); fillData(data, dimensions, buffer.order(ByteOrder.LITTLE_ENDIAN)); return data; } Reference(ByteBuffer bb); ReferenceType getType(); @Override Class<?> getJavaType(); @Override Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc); }
Reference extends DataType { @Override public Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc) { final Object data = Array.newInstance(getJavaType(), dimensions); fillData(data, dimensions, buffer.order(ByteOrder.LITTLE_ENDIAN)); return data; } Reference(ByteBuffer bb); ReferenceType getType(); @Override Class<?> getJavaType(); @Override Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc);  }