boolean function ( ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "srini_string" + bytesReadNotChangedCount ) ; if ( bytesReadNotChangedCount > 3 ) { return false ; } else { return true ; } }
this looks at the previousbytesread value which only will update when the file is being uploaded and it compares it against the current bytes read value passed in as a param . if they are the same more the 3 times , we assume the connection is broken and abort the upload . this is another safety measure to reset the upload form concode_field_sep String SESSION_PROGRESS_MONITOR concode_elem_sep int bytesReadNotChangedCount concode_elem_sep long bytesRead concode_elem_sep long bytesLength concode_elem_sep boolean aborted concode_elem_sep NumberFormat fmt concode_elem_sep String fileName concode_elem_sep long previousBytesRead concode_elem_sep Logger logger concode_field_sep void setFileName concode_elem_sep void abort concode_elem_sep void setPreviousBytesRead concode_elem_sep void update concode_elem_sep long getBytesLength concode_elem_sep String percentComplete concode_elem_sep String getFileName concode_elem_sep long getBytesRead concode_elem_sep boolean isAborted