Class PathResource

    • Field Detail

      • openOptions

        private final java.nio.file.OpenOption[] openOptions
    • Constructor Detail

      • PathResource

        public PathResource​(java.nio.file.Path path)
      • PathResource

        public PathResource​(java.nio.file.Path path,
                            java.nio.file.OpenOption... openOptions)
    • Method Detail

      • getPath

        public java.nio.file.Path getPath()
      • getOpenOptions

        public java.nio.file.OpenOption[] getOpenOptions()
      • openInputStream

        public java.io.InputStream openInputStream()
                                            throws java.io.IOException
        Returns:
        an InputStream for the resource's data
        Throws:
        java.io.IOException - If failed to open the stream