Class PathResource

  • All Implemented Interfaces:
    Resource

    public class PathResource
    extends java.lang.Object
    implements Resource
    • Constructor Summary

      Constructors 
      Constructor Description
      PathResource​(java.nio.file.Path base)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Resource> get​(java.lang.String path)  
      boolean isDirectory()  
      PathResource limit​(java.lang.String... subpaths)  
      java.util.Set<Resource> list()  
      java.lang.String name()  
      java.util.Optional<byte[]> read()  
      • Methods inherited from class java.lang.Object

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

      • PathResource

        public PathResource​(java.nio.file.Path base)
    • Method Detail

      • limit

        public PathResource limit​(java.lang.String... subpaths)
      • name

        public java.lang.String name()
        Specified by:
        name in interface Resource
      • get

        public java.util.Optional<Resource> get​(java.lang.String path)
        Specified by:
        get in interface Resource
      • read

        public java.util.Optional<byte[]> read()
        Specified by:
        read in interface Resource