core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
/**
     * Closes all resources used by the content, including all streams, readers
     * and writers.
     * @throws FileSystemException if an error occurs.
     */
Closes all resources used by the content, including all streams, readers
and writers.
@throws FileSystemException if an error occurs.
Closes all resources used by the content including all streams readers and writers . @throws FileSystemException if an error occurs .
public void close() throws FileSystemException
    {
        try
        {
            while (getThreadData().getInstrsSize() > 0)
            {
                final FileContentInputStream instr = (FileContentInputStream) getThreadData().removeInstr(0);
                instr.close();
            }
            while (getThreadData().getRastrsSize() > 0)
            {
                final RandomAccessContent ra = (RandomAccessContent) getThreadData().removeRastr(0);
                try
                {
                    ra.close();
                }
                catch (IOException e)
                {
                    throw new FileSystemException(e);
                }
            }
            if (this.getThreadData().getOutstr() != null)
            {
                this.getThreadData().closeOutstr();
            }
        }
        finally
        {
            threadData.set(null);
        }
    }
public void close ( ) throws FileSystemException { try { while ( getThreadData ( ) . getInstrsSize ( ) > 0 ) { final FileContentInputStream instr = ( FileContentInputStream ) getThreadData ( ) . removeInstr ( 0 ) ; instr . close ( ) ; } while ( getThreadData ( ) . getRastrsSize ( ) > 0 ) { final RandomAccessContent ra = ( RandomAccessContent ) getThreadData ( ) . removeRastr ( 0 ) ; try { ra . close ( ) ; } catch ( IOException e ) { throw new FileSystemException ( e ) ; } } if ( this . getThreadData ( ) . getOutstr ( ) != null ) { this . getThreadData ( ) . closeOutstr ( ) ; } } finally { threadData . set ( null ) ; } }
Closes all resources used by the content, including all streams, readers
 and writers.
Closes all resources used by the content including all streams readers and writers .
// Close the input stream // Close the randomAccess stream // Close the output stream