Class SafeSimpleDateFormat

java.lang.Object
java.text.Format
java.text.DateFormat
java.text.SimpleDateFormat
se.datadosen.util.SafeSimpleDateFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SafeSimpleDateFormat
extends java.text.SimpleDateFormat
Thread safe SimpleDateFormat
Since:
20.1
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.text.DateFormat

    java.text.DateFormat.Field
  • Field Summary

    Fields inherited from class java.text.DateFormat

    AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
  • Constructor Summary

    Constructors 
    Constructor Description
    SafeSimpleDateFormat()  
    SafeSimpleDateFormat​(java.lang.String pattern)  
    SafeSimpleDateFormat​(java.lang.String pattern, java.util.Locale locale)  
    SafeSimpleDateFormat​(java.text.DateFormat template)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.StringBuffer format​(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)  
    void set2DigitYearStart​(java.util.Date startDate)  
    void setCalendar​(java.util.Calendar newCalendar)  
    void setDateFormatSymbols​(java.text.DateFormatSymbols newFormatSymbols)  
    void setLenient​(boolean lenient)  
    void setNumberFormat​(java.text.NumberFormat newNumberFormat)  
    void setTimeZone​(java.util.TimeZone zone)  

    Methods inherited from class java.text.SimpleDateFormat

    applyLocalizedPattern, applyPattern, clone, equals, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, toLocalizedPattern, toPattern

    Methods inherited from class java.text.DateFormat

    format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject

    Methods inherited from class java.text.Format

    format, parseObject

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • format

      public java.lang.StringBuffer format​(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
      Overrides:
      format in class java.text.SimpleDateFormat
    • setDateFormatSymbols

      public void setDateFormatSymbols​(java.text.DateFormatSymbols newFormatSymbols)
      Overrides:
      setDateFormatSymbols in class java.text.SimpleDateFormat
    • set2DigitYearStart

      public void set2DigitYearStart​(java.util.Date startDate)
      Overrides:
      set2DigitYearStart in class java.text.SimpleDateFormat
    • setLenient

      public void setLenient​(boolean lenient)
      Overrides:
      setLenient in class java.text.DateFormat
    • setTimeZone

      public void setTimeZone​(java.util.TimeZone zone)
      Overrides:
      setTimeZone in class java.text.DateFormat
    • setNumberFormat

      public void setNumberFormat​(java.text.NumberFormat newNumberFormat)
      Overrides:
      setNumberFormat in class java.text.DateFormat
    • setCalendar

      public void setCalendar​(java.util.Calendar newCalendar)
      Overrides:
      setCalendar in class java.text.DateFormat