code: protected void setupPathedInputStream() throws IOException
     {
        InputStream curIn = getBaseResource().openStream();
  
        for (int i = 0; i < this.segments.length; ++i)
        {
           curIn = getSegmentInputStream(curIn, segments[i]);
        }
  
        this.in = curIn;
     }
docs: Setup the <code>InputStream</code> for URL with nested segments.
  
  @throws java.io.IOException If an I/O error occurs.