@Override
    public String getName () {
        String urlpath = getURLPath();
        String shr = getShare();
        if ( urlpath.length() > 1 ) {
            int i = urlpath.length() - 2;
            while ( urlpath.charAt(i) != '/' ) {
                i--;
            }
            return urlpath.substring(i + 1);
        }
        else if ( shr != null ) {
            return shr + '/';
        }
        else if ( this.url.getHost().length() > 0 ) {
            return this.url.getHost() + '/';
        }
        else {
            return "smb://";
        }
    }
@ Override public String getName ( ) { String urlpath = getURLPath ( ) ; String shr = getShare ( ) ; if ( urlpath . length ( ) > 1 ) { int i = urlpath . length ( ) - 2 ; while ( urlpath . charAt ( i ) != '/' ) { i -- ; } return urlpath . substring ( i + 1 ) ; } else if ( shr != null ) { return shr + '/' ; } else if ( this . url . getHost ( ) . length ( ) > 0 ) { return this . url . getHost ( ) + '/' ; } else { return "smb://" ; } }
{@inheritDoc}

@see jcifs.SmbResourceLocator#getName()