getShort

public short getShort(String name, short defaultValue)

Return

The value of the numeric tag associated with the name, cast to a short if it isn't already. If a tag with that name does not exist (or is not a number), the defaultValue is returned.

See also

get(Object)

Parameters

name

The name of the tag whose short value should be returned. Dot-notation is supported for accessing nested tags.

defaultValue

The value to return if the tag does not exist, or cannot be cast to the appropriate type.