/** * @param o * @exception IOException * @exception DicomException */ public void write(DicomOutputStream o) throws DicomException, IOException { writeBase(o); short[] v = getShortValues(); if (v != null) { for (int j = 0; j < v.length; ++j) { o.writeSigned16(v[j]); } } }
/** * @param o * @exception IOException * @exception DicomException */ public void write(DicomOutputStream o) throws DicomException, IOException { writeBase(o); double[] v = getDoubleValues(); if (v != null) { for (int j = 0; j < v.length; ++j) { o.writeDouble(v[j]); } } }
/** * @param o * @throws IOException * @throws DicomException */ public void write(DicomOutputStream o) throws DicomException, IOException { // throw new DicomException("Internal error - unsupported operation, write of // OtherWordAttributeOnDisk"); writeBase(o); if (valueLength > 0) { // System.err.println("OtherWordAttributeOnDisk.write(): start file = "+file); BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); CopyStream.skipInsistently(in, byteOffset); if (bigEndian == o.isBigEndian()) { CopyStream.copy(in, o, valueLength); } else { CopyStream.copyByteSwapped(in, o, valueLength); } in.close(); } }