org.springframework.format.datetime.joda

Class LocalTimeParser

  • java.lang.Object
    • org.springframework.format.datetime.joda.LocalTimeParser
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      LocalTime parse(java.lang.String text, java.util.Locale locale)
      Parse a text String to produce a T.
      • Methods inherited from class java.lang.Object

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

      • LocalTimeParser

        public LocalTimeParser(DateTimeFormatter formatter)
        Create a new DateTimeParser.
        Parameters:
        formatter - the Joda DateTimeFormatter instance
    • Method Detail

      • parse

        public LocalTime parse(java.lang.String text,
                               java.util.Locale locale)
                        throws java.text.ParseException
        Description copied from interface: Parser
        Parse a text String to produce a T.
        Specified by:
        parse in interface Parser<LocalTime>
        Parameters:
        text - the text string
        locale - the current user locale
        Returns:
        an instance of T
        Throws:
        java.text.ParseException - when a parse exception occurs in a java.text parsing library