bundles/org.eclipse.packagedrone.utils/src/org/eclipse/packagedrone/utils/io/FileNames.java
public static String getBasename ( final String name )
    {
        if ( name == null )
        {
            return null;
        }

        final String[] toks = name.split ( "/" );
        if ( toks.length < 1 )
        {
            return name;
        }

        return toks[toks.length - 1];
    }
public static String getBasename ( final String name )
    {
        if ( name == null )
        {
            return null;
        }

        final String[] toks = name.split ( "/" );
        if ( toks.length < 1 )
        {
            return name;
        }

        return toks[toks.length - 1];
    }
public static String getBasename ( final String name ) { if ( name == null ) { return null ; } final String [ ] toks = name . split ( "/" ) ; if ( toks . length < 1 ) { return name ; } return toks [ toks . length - 1 ] ; }
Get the last segment of a path, the filename

@param name
the name to process
@return the last segment, or {@code null} if the input was {@code null}
Get the last segment of a path the filename