private void doCopy ( ) throws IOException { int copied = IOUtil . copy ( currentNodeStream , outputStream , BUFFER_LENGTH ) ; if ( copied == - 1 ) { currentNodeStream . close ( ) ; currentNodeStream = null ; endAsset ( ) ; } }
Performs copy operation between currentNodeStream and outputStream using buffer length .