Interface SnapshotDateTimeParser

All Known Implementing Classes:
FileNameDateTimeParser, ModificationDateTimeParser

public interface SnapshotDateTimeParser
Instances of this interface try to determine an ZonedDateTime from a given Path.
  • Method Summary

    Modifier and Type
    Method
    Description
    Attempt to detect an ZonedDateTime from a path.
  • Method Details

    • detectDateTime

      @Nullable ZonedDateTime detectDateTime(Path path)
      Attempt to detect an ZonedDateTime from a path.

      The path is not guaranteed to exist.

      Parameters:
      path - the path
      Returns:
      date-time, if it can be parsed