Class UriByteSource

    • Method Detail

      • of

        public static UriByteSource of​(URI uri)
        Creates an instance based on the underlying URI.
        Parameters:
        uri - the URI
        Returns:
        the byte source
      • of

        public static UriByteSource of​(URL url)
        Creates an instance based on the underlying URL.
        Parameters:
        url - the URL
        Returns:
        the byte source
      • metaBean

        public org.joda.beans.MetaBean metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getFileName

        public Optional<String> getFileName()
        Description copied from class: BeanByteSource
        Gets the file name of the source.

        Most sources originate from a file-based location. This is captured and returned here where available.

        Overrides:
        getFileName in class BeanByteSource
        Returns:
        the file name, empty if not known
      • getUri

        public URI getUri()
        Gets the URI.
        Returns:
        the URI
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object