@Deprecated
    @Override
    public int getContentLength () {
        try {
            return (int) ( length() & 0xFFFFFFFFL );
        }
        catch ( SmbException se ) {
            log.debug("getContentLength", se);
        }
        return 0;
    }
@ Deprecated @ Override public int getContentLength ( ) { try { return ( int ) ( length ( ) & 0xFFFFFFFFL ) ; } catch ( SmbException se ) { log . debug ( "getContentLength" , se ) ; } return 0 ; }
This URLConnection method just returns the result of <tt>length()</tt>.

@return the length of this file or 0 if it refers to a directory