/** * @param v * @exception DicomException */ public void addValue(short v) throws DicomException { flushCachedCopies(); values = ArrayCopyUtilities.expandArray(values); values[valueMultiplicity++] = v; valueLength += 2; }
/** @exception DicomException */ public double[] getDoubleValues() throws DicomException { if (cachedDoubleCopy == null) cachedDoubleCopy = ArrayCopyUtilities.copySignedShortToDoubleArray(values); return cachedDoubleCopy; }
/** @exception DicomException */ public long[] getLongValues() throws DicomException { if (cachedLongCopy == null) cachedLongCopy = ArrayCopyUtilities.copySignedShortToLongArray(values); return cachedLongCopy; }
/** @exception DicomException */ public float[] getFloatValues() throws DicomException { if (cachedFloatCopy == null) cachedFloatCopy = ArrayCopyUtilities.copySignedShortToFloatArray(values); return cachedFloatCopy; }
/** @exception DicomException */ public int[] getIntegerValues() throws DicomException { if (cachedIntegerCopy == null) cachedIntegerCopy = ArrayCopyUtilities.copySignedShortToIntArray(values); return cachedIntegerCopy; }