org.springframework.boot.origin

Class OriginTrackedResource

  • java.lang.Object
    • org.springframework.boot.origin.OriginTrackedResource
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.springframework.core.io.InputStreamSource
        Throws:
        java.io.IOException
      • exists

        public boolean exists()
        Specified by:
        exists in interface org.springframework.core.io.Resource
      • isReadable

        public boolean isReadable()
        Specified by:
        isReadable in interface org.springframework.core.io.Resource
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.springframework.core.io.Resource
      • isFile

        public boolean isFile()
        Specified by:
        isFile in interface org.springframework.core.io.Resource
      • getURL

        public java.net.URL getURL()
                            throws java.io.IOException
        Specified by:
        getURL in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • getURI

        public java.net.URI getURI()
                            throws java.io.IOException
        Specified by:
        getURI in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • getFile

        public java.io.File getFile()
                             throws java.io.IOException
        Specified by:
        getFile in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • readableChannel

        public java.nio.channels.ReadableByteChannel readableChannel()
                                                              throws java.io.IOException
        Specified by:
        readableChannel in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • contentLength

        public long contentLength()
                           throws java.io.IOException
        Specified by:
        contentLength in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • lastModified

        public long lastModified()
                          throws java.io.IOException
        Specified by:
        lastModified in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • createRelative

        public org.springframework.core.io.Resource createRelative(java.lang.String relativePath)
                                                            throws java.io.IOException
        Specified by:
        createRelative in interface org.springframework.core.io.Resource
        Throws:
        java.io.IOException
      • getFilename

        public java.lang.String getFilename()
        Specified by:
        getFilename in interface org.springframework.core.io.Resource
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.springframework.core.io.Resource
      • getResource

        public org.springframework.core.io.Resource getResource()
      • getOrigin

        public Origin getOrigin()
        Description copied from interface: OriginProvider
        Return the source origin or null if the origin is not known.
        Specified by:
        getOrigin in interface OriginProvider
        Returns:
        the origin or null
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object