/** * Formats a message for an index out of 2D bounds. */ static String indexOutOfBounds(final int dimension) { return Errors.format(ErrorKeys.INDEX_OUT_OF_BOUNDS_$1, dimension); }
/** * Returns a brief, human-readable description of this service provider * and its associated implementation. The resulting string should be * localized for the supplied locale, if possible. * * @param locale A Locale for which the return value should be localized. * @return A String containing a description of this service provider. */ public String getDescription(final Locale locale) { return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_MATRIX); }
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static String format(final int key) throws MissingResourceException { return getResources(null).getString(key); }
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static String format(final int key) throws MissingResourceException { return getResources(null).getString(key); }
/** * Returns the resources for formatting error messages. */ private IndexedResourceBundle getErrorResources() { return Errors.getResources(locale); }
/** * Gets a log record for the given key from this resource bundle or one of its parents. * * @param level The log record level. * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key) throws MissingResourceException { return getResources(null).getLogRecord(level, key); }
/** * Constructs a new image reader. * * @param provider The {@link ImageReaderSpi} that is invoking this constructor, * or {@code null} if none. */ protected GeographicImageReader(final ImageReaderSpi provider) { super(provider); availableLocales = Locales.getAvailableLocales(); }
/** * Constructs an exception with an error message formatted for the specified class. * * @param classe The unexpected implementation class. */ public UnsupportedImplementationException(final Class<?> classe) { super(Errors.format(ErrorKeys.UNKNOW_TYPE_$1, classe)); }
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static String format(final int key) throws MissingResourceException { return getResources(null).getString(key); }
/** * Returns a localized string for the specified error key. */ final String getString(final int key) { return Errors.getResources(locale).getString(key); }
/** * Returns the name of the column at {@code columnIndex}. */ public String getColumnName(final int columnIndex) { return Vocabulary.format(columnNames[columnIndex]); }
/** * Returns a brief, human-readable description of this service provider * and its associated implementation. The resulting string should be * localized for the supplied locale, if possible. * * @param locale A Locale for which the return value should be localized. * @return A String containing a description of this service provider. */ public String getDescription(final Locale locale) { return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_MATRIX); }
/** * Creates a new exception with a default message determined from the specified category. */ public RecursiveSearchException(final Class<?> category) { super(Errors.format(ErrorKeys.RECURSIVE_CALL_$1, category)); }
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static String format(final int key) throws MissingResourceException { return getResources(null).getString(key); }
/** * Constructs an exception with an error message formatted for the specified class * and a cause. * * @param classe The unexpected implementation class. * @param cause The cause for the exception. */ public UnsupportedImplementationException(final Class<?> classe, final Exception cause) { super(Errors.format(ErrorKeys.UNKNOW_TYPE_$1, classe), cause); } }
/** * Returns a brief, human-readable description of this service provider * and its associated implementation. The resulting string should be * localized for the supplied locale, if possible. * * @param locale A Locale for which the return value should be localized. * @return A String containing a description of this service provider. */ public String getDescription(final Locale locale) { return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_GRID); }
/** * Constructs an exception with a detail message from the specified error code. * Should not be public because the GeoTools I18N framework is not a commited one. */ InvalidGridGeometryException(final int code) { super(Errors.format(code)); }
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static String format(final int key) throws MissingResourceException { return getResources(null).getString(key); }
/** * Returns a message for exception. * * @todo provides a better formatting of the point coordinate. */ private static String cannotEvaluate(final DirectPosition point) { return Errors.format(ErrorKeys.CANT_EVALUATE_$1, point); }