Lines Matching refs:value

56      * value depending on the field definition.
96 // Actual data count in tag (should be number of elements in value array)
100 // The value (array of elements of type Tag Type)
194 * Gets the total data size in bytes of the value of this tag.
211 * setValue() if the length of value does not match the component count.
218 * Returns true if this ExifTag contains value; otherwise, this tag will
219 * contain an offset value that is determined when the tag is written.
231 * <li>The value overflows.</li>
232 * <li>The value.length does NOT match the component count in the definition
236 public boolean setValue(int[] value) {
237 if (checkBadComponentCount(value.length)) {
244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) {
246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) {
250 long[] data = new long[value.length];
251 for (int i = 0; i < value.length; i++) {
252 data[i] = value[i];
255 mComponentCountActual = value.length;
260 * Sets integer value into this tag. This method should be used for tags of
266 * <li>The value overflows.</li>
270 public boolean setValue(int value) {
272 value
281 * <li>The value overflows.</li>
282 * <li>The value.length does NOT match the component count in the definition
286 public boolean setValue(long[] value) {
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) {
290 if (checkOverflowForUnsignedLong(value)) {
293 mValue = value;
294 mComponentCountActual = value.length;
303 * <li>The value overflows.</li>
307 public boolean setValue(long value) {
309 value
314 * Sets a string value into this tag. This method should be used for tags of
319 * overwriting the last character in the string if the value.length is equal
327 public boolean setValue(String value) {
332 byte[] buf = value.getBytes(US_ASCII);
356 * <li>The value overflows.</li>
357 * <li>The value.length does NOT match the component count in the definition
363 public boolean setValue(Rational[] value) {
364 if (checkBadComponentCount(value.length)) {
370 if (mDataType == TYPE_UNSIGNED_RATIONAL && checkOverflowForUnsignedRational(value)) {
372 } else if (mDataType == TYPE_RATIONAL && checkOverflowForRational(value)) {
376 mValue = value;
377 mComponentCountActual = value.length;
382 * Sets a Rational value into this tag. This method should be used for tags
388 * <li>The value overflows.</li>
394 public boolean setValue(Rational value) {
396 value
411 public boolean setValue(byte[] value, int offset, int length) {
419 System.arraycopy(value, offset, mValue, 0, length);
425 * Equivalent to setValue(value, 0, value.length).
427 public boolean setValue(byte[] value) {
428 return setValue(value, 0, value.length);
432 * Sets byte value into this tag. This method should be used for tags of
441 public boolean setValue(byte value) {
443 value
448 * Sets the value for this tag using an appropriate setValue method for the
534 * Gets the value as a String. This method should be used for tags of type
537 * @return the value as a String, or null if the tag's value does not exist
552 * Gets the value as a String. This method should be used for tags of type
555 * @param defaultValue the String to return if the tag's value does not
557 * @return the tag's value as a String, or the defaultValue.
568 * Gets the value as a byte array. This method should be used for tags of
571 * @return the value as a byte array, or null if the tag's value does not
582 * Gets the value as a byte. If there are more than 1 bytes in this value,
586 * @param defaultValue the byte to return if tag's value does not exist or
588 * @return the tag's value as a byte, or the defaultValue.
599 * Gets the value as an array of Rationals. This method should be used for
602 * @return the value as as an array of Rationals, or null if the tag's value
613 * Gets the value as a Rational. If there are more than 1 Rationals in this
614 * value, gets the first one. This method should be used for tags of type
617 * @param defaultValue the Rational to return if tag's value does not exist
619 * @return the tag's value as a Rational, or the defaultValue.
630 * Gets the value as a Rational. If there are more than 1 Rationals in this
631 * value, gets the first one. This method should be used for tags of type
635 * value does not exist or cannot be converted to a Rational (the
637 * @return the tag's value as a Rational, or the defaultValue.
645 * Gets the value as an array of ints. This method should be used for tags
648 * @return the value as as an array of ints, or null if the tag's value does
666 * Gets the value as an int. If there are more than 1 ints in this value,
670 * @param defaultValue the int to return if tag's value does not exist or
672 * @return the tag's value as a int, or the defaultValue.
683 * Gets the value as an array of longs. This method should be used for tags
686 * @return the value as as an array of longs, or null if the tag's value
697 * Gets the value or null if none exists. If there are more than 1 longs in
698 * this value, gets the first one. This method should be used for tags of
701 * @param defaultValue the long to return if tag's value does not exist or
703 * @return the tag's value as a long, or the defaultValue.
714 * Gets the tag's value or null if none exists.
721 * Gets a long representation of the value.
723 * @param defaultValue value to return if there is no value or value is a
725 * @return the tag's value as a long, or defaultValue if no representation
745 * Gets a string representation of the value.
779 * Gets the value for type {@link #TYPE_ASCII}, {@link #TYPE_LONG},
794 throw new IllegalArgumentException("Cannot get integer value from "
806 throw new IllegalArgumentException("Cannot get ASCII value from "
827 throw new IllegalArgumentException("Cannot get RATIONAL value from "
852 throw new IllegalArgumentException("Cannot get BYTE value from "
861 * contains an offset to the location of the actual value.
912 private boolean checkOverflowForUnsignedShort(int[] value) {
913 for (int v : value) {
921 private boolean checkOverflowForUnsignedLong(long[] value) {
922 for (long v : value) {
930 private boolean checkOverflowForUnsignedLong(int[] value) {
931 for (int v : value) {
939 private boolean checkOverflowForUnsignedRational(Rational[] value) {
940 for (Rational v : value) {
950 private boolean checkOverflowForRational(Rational[] value) {
951 for (Rational v : value) {