copy bytes from a large over 2gb inputstream to an outputstream . this method buffers the input internally , so there is no need to use a bufferedinputstream . the buffer size is given by #default_buffer_size . concode_field_sep int DEFAULT_BUFFER_SIZE concode_elem_sep int EOF concode_field_sep int copy
long function ( InputStream arg0 , OutputStream arg1 ) { byte [ ] loc0 = new byte [ DEFAULT_BUFFER_SIZE ] ; long loc1 = 0 ; int loc2 = 0 ; while ( EOF != ( loc2 = arg0 . read ( loc0 ) ) ) { arg1 . write ( loc0 , 0 , loc2 ) ; loc1 += loc2 ; } return loc1 ; }