/** * INTERNAL: Copies the variant value and datatype from the * source topic to the target topic. * * @since 4.0 */ public static void copyVariantData(VariantNameIF target, VariantNameIF source) { if (source.getLength() > DataTypes.SIZE_THRESHOLD) target.setReader(source.getReader(), source.getLength(), source.getDataType()); else target.setValue(source.getValue(), source.getDataType()); }
ri = new FileReader(filein); ro = new FileReader(fileout); long outlen = variant.getLength(); try { assertTrue("Variant value put in is not the same as the one we get out.", IOUtils.contentEquals(ro, ri));