copy bytes from an inputstream to an outputstream . this method buffers the input internally , so there is no need to use a bufferedinputstream . large streams over 2gb will return a bytes copied value of -1 after the copy has completed since the correct number of bytes can not be returned as an int . for large streams use the copylarge inputstream , outputstream method . concode_field_sep byte[] SKIP_BYTE_BUFFER concode_elem_sep int DEFAULT_BUFFER_SIZE concode_elem_sep int EOF concode_elem_sep int SKIP_BUFFER_SIZE concode_field_sep void skipFully concode_elem_sep byte[] toByteArray concode_elem_sep long skip concode_elem_sep void closeQuietly concode_elem_sep void closeQuietly concode_elem_sep void closeQuietly concode_elem_sep long copyLarge concode_elem_sep long copyLarge concode_elem_sep long copyLarge concode_elem_sep long copyLarge
int function ( InputStream arg0 , OutputStream arg1 ) { long loc0 = copyLarge ( arg0 , arg1 ) ; if ( loc0 > Integer . MAX_VALUE ) { return - 1 ; } return ( int ) loc0 ; }