Class MutableDateFormat

  • All Implemented Interfaces:
    LocaleListener

    public class MutableDateFormat
    extends java.lang.Object
    implements LocaleListener
    A simple wrapper around a SimpleDateFormat that simplifies the interface for altering and retrieving the format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.Date date)  
      java.text.SimpleDateFormat get_format()  
      java.lang.String getFormatText()  
      void localeChanged​(java.util.Locale newLocale)  
      java.util.Date parse​(java.lang.String source)  
      void setFormatText​(java.lang.String formatText)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableDateFormat

        public MutableDateFormat()
      • MutableDateFormat

        public MutableDateFormat​(java.lang.String formatText)
    • Method Detail

      • getFormatText

        public java.lang.String getFormatText()
      • setFormatText

        public void setFormatText​(java.lang.String formatText)
                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • get_format

        public java.text.SimpleDateFormat get_format()
      • format

        public final java.lang.String format​(java.util.Date date)
      • parse

        public java.util.Date parse​(java.lang.String source)
                             throws java.text.ParseException
        Throws:
        java.text.ParseException