getString

public String getString(String name)

Same as getString, but the default value is always null.


public String getString(String name, String defaultValue)

Return

The stringified value of the tag associated with the name. If a tag with that name does not exist, the defaultValue is returned. If a value exists for that name, but is not already a string, the value is converted to a string using its toString() method.

See also

get(Object)

Parameters

name

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

defaultValue

The value to return if the tag does not exist. May be null.