Class FileSource

    • Method Detail

      • from

        public static FileSource from​(File file)
        Create a new FileSource using the supplied file.
        Parameters:
        file - the source file; must not be null
      • from

        public static FileSource from​(File file,
                                      FilePosition filePosition)
        Create a new FileSource using the supplied file and filePosition.
        Parameters:
        file - the source file; must not be null
        filePosition - the position in the source file; may be null
      • getUri

        public final URI getUri()
        Get the URI for the source file.
        Specified by:
        getUri in interface UriSource
        Returns:
        the source URI; never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object