Class TimeUtil


  • public final class TimeUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeUtil()  
    • Method Summary

      Modifier and Type Method Description
      static java.util.Date parseTimeField​(XContentParser parser, java.lang.String fieldName)
      Parse out a Date object given the current parser and field name.
      • Methods inherited from class java.lang.Object

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

      • TimeUtil

        public TimeUtil()
    • Method Detail

      • parseTimeField

        public static java.util.Date parseTimeField​(XContentParser parser,
                                                    java.lang.String fieldName)
                                             throws java.io.IOException
        Parse out a Date object given the current parser and field name.
        Parameters:
        parser - current XContentParser
        fieldName - the field's preferred name (utilized in exception)
        Returns:
        parsed Date object
        Throws:
        java.io.IOException - from XContentParser