This method of the NumberDataFormat class retrieves the format string.
public String getFormat();
Returns the current format string. For information about possible format strings, see setFormat.