code: protected int getContentLength(boolean update) {            
        if (update){
                contentLength = (int) this.getFileSize(update);
                return contentLength;
        } else {
                if (contentLength==-1){
                        contentLength = (int) this.getFileSize(update);
                return contentLength;
                }
                else {
                        return contentLength;
                }
        }
    }
docs: PM92967, pulled up method