Class UriReader

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description​(java.net.URI uri)
      Returns a detailed description of the given uri.
      byte[] readBytes​(java.net.URI uri)
      Reads all bytes from uri.
      java.lang.String readString​(java.net.URI uri, java.nio.charset.Charset charset)
      Reads all characters from uri, using the given character set.
      • Methods inherited from class java.lang.Object

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

      • readBytes

        public byte[] readBytes​(java.net.URI uri)
        Reads all bytes from uri. It throws an unchecked exception if an error occurs.
      • readString

        public java.lang.String readString​(java.net.URI uri,
                                           java.nio.charset.Charset charset)
        Reads all characters from uri, using the given character set. It throws an unchecked exception if an error occurs.
      • description

        public java.lang.String description​(java.net.URI uri)
        Returns a detailed description of the given uri. For example HTTP URIs are completed with the configured HTTP proxy.