Example usage for java.text.spi DateFormatProvider subclass-usage

List of usage examples for java.text.spi DateFormatProvider subclass-usage

Introduction

In this page you can find the example usage for java.text.spi DateFormatProvider subclass-usage.

Usage

From source file Main.java

class DateFormatProviderImpl extends DateFormatProvider {
    private Locale ca = new Locale("en", "CA");

    public Locale[] getAvailableLocales() {
        return new Locale[] { ca };
    }

From source file AntarcticaLocaleDemo.java

class DateFormatProviderImpl extends DateFormatProvider {
    private Locale antarctica = new Locale ("en", "AQ");

    public Locale[] getAvailableLocales() {
        return new Locale [] {antarctica};
    }