core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java
/**
     * Creates an input stream to read the file content from.  Is only called
     * if {@link #doGetType} returns {@link FileType#FILE}.
     * <p/>
     * <p>It is guaranteed that there are no open output streams for this file
     * when this method is called.
     * <p/>
     * <p>The returned stream does not have to be buffered.
     */
Creates an input stream to read the file content from.  Is only called
if  #doGetType returns  FileType#FILE.

It is guaranteed that there are no open output streams for this file
when this method is called.

The returned stream does not have to be buffered.
Creates an input stream to read the file content from . Is only called if #doGetType returns FileType#FILE . It is guaranteed that there are no open output streams for this file when this method is called . The returned stream does not have to be buffered .
@Override
    protected InputStream doGetInputStream() throws Exception
    {
        final GetMethod getMethod = new GetMethod();
        setupMethod(getMethod);
        final int status = fileSystem.getClient().executeMethod(getMethod);
        if (status == HttpURLConnection.HTTP_NOT_FOUND)
        {
            throw new FileNotFoundException(getName());
        }
        if (status != HttpURLConnection.HTTP_OK)
        {
            throw new FileSystemException("vfs.provider.http/get.error", getName());
        }
        return new HttpInputStream(getMethod);
    }
@ Override protected InputStream doGetInputStream ( ) throws Exception { final GetMethod getMethod = new GetMethod ( ) ; setupMethod ( getMethod ) ; final int status = fileSystem . getClient ( ) . executeMethod ( getMethod ) ; if ( status == HttpURLConnection . HTTP_NOT_FOUND ) { throw new FileNotFoundException ( getName ( ) ) ; } if ( status != HttpURLConnection . HTTP_OK ) { throw new FileSystemException ( "vfs.provider.http/get.error" , getName ( ) ) ; } return new HttpInputStream ( getMethod ) ; }
Creates an input stream to read the file content from.
Creates an input stream to read the file content from .