Class ByteRangeInputStream.URLOpener

java.lang.Object
org.apache.hadoop.hdfs.web.ByteRangeInputStream.URLOpener
Enclosing class:
ByteRangeInputStream

public abstract static class ByteRangeInputStream.URLOpener extends Object
This class wraps a URL and provides method to open connection. It can be overridden to change how a connection is opened.
  • Field Details

    • url

      protected URL url
  • Constructor Details

    • URLOpener

      public URLOpener(URL u)
  • Method Details

    • setURL

      public void setURL(URL u)
    • getURL

      public URL getURL()
    • connect

      protected abstract HttpURLConnection connect(long offset, boolean resolved) throws IOException
      Connect to server with a data offset.
      Throws:
      IOException