/** * Writes out the list of integer values. If there are more than three, * a MulRK record is used, otherwise a sequence of Numbers is used * * @exception IOException * @param outputFile the output file * @param integerValues the array of integer values */ private void writeIntegerValues(ArrayList integerValues, File outputFile) { if (integerValues.Count == 0) { return; } if (integerValues.Count >= 3) { // Write out as a MulRK record MulRKRecord mulrk = new MulRKRecord(integerValues); outputFile.write(mulrk); } else { // Write out as number records foreach (CellValue cv in integerValues) { outputFile.write(cv); } } // Clear out the list of integerValues integerValues.Clear(); }
/** * Writes out the list of integer values. If there are more than three, * a MulRK record is used, otherwise a sequence of Numbers is used * * @exception IOException * @param outputFile the output file * @param integerValues the array of integer values */ private void writeIntegerValues(ArrayList integerValues, File outputFile) { if (integerValues.Count == 0) { return; } if (integerValues.Count >= 3) { // Write out as a MulRK record MulRKRecord mulrk = new MulRKRecord(integerValues); outputFile.write(mulrk); } else { // Write out as number records foreach (CellValue cv in integerValues) outputFile.write(cv); } // Clear out the list of integerValues integerValues.Clear(); }