@Override
    public long skip(long n) throws IOException {
        //Return -1 here because if we are closed or finished, we're at the end of the stream
        if(isClosed || isFinished()){
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                Tr.debug(tc, "Nothing to read, stream is closed : " + isClosed + ", or finished : " + isFinished());
            return -1;
        }
        
        return super.skip(n);
    }
@ Override public long skip ( long n ) throws IOException { if ( isClosed || isFinished ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Nothing to read, stream is closed : " + isClosed + ", or finished : " + isFinished ( ) ) ; return - 1 ; } return super . skip ( n ) ; }
/* (non-Javadoc)
@see java.io.InputStream#skip(long)