long function ( final String arg0 , InputStream arg1 , int arg2 ) { byte [ ] loc0 = new byte [ arg2 ] ; int loc1 ; CopyIn loc2 = copyIn ( arg0 ) ; try { while ( ( loc1 = arg1 . read ( loc0 ) ) >= 0 ) { if ( loc1 > 0 ) { loc2 . writeToCopy ( loc0 , 0 , loc1 ) ; } } return loc2 . endCopy ( ) ; } finally { if ( loc2 . isActive ( ) ) { loc2 . cancelCopy ( ) ; } } }
use copy from stdin for very fast copying from an inputstream into a database table . concode_field_sep int DEFAULT_BUFFER_SIZE concode_elem_sep QueryExecutor queryExecutor concode_elem_sep BaseConnection connection concode_elem_sep Encoding encoding concode_field_sep CopyOut copyOut concode_elem_sep long copyOut concode_elem_sep long copyOut