/** * @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(); } }