static String uri(final String... paths) {
        StringBuilder sb = new StringBuilder();
        boolean firstPath = true;
        for (String s : paths) {
            if (s == null || s.isEmpty()) {
                continue;
            }
            if (!s.startsWith("/") && !firstPath) {
                sb.append("/");
            }
            sb.append(stripLeadingSlash(s));
            firstPath = false;
        }
        return sb.toString();
    }
static String uri ( final String ... paths ) { StringBuilder sb = new StringBuilder ( ) ; boolean firstPath = true ; for ( String s : paths ) { if ( s == null || s . isEmpty ( ) ) { continue ; } if ( ! s . startsWith ( "/" ) && ! firstPath ) { sb . append ( "/" ) ; } sb . append ( stripLeadingSlash ( s ) ) ; firstPath = false ; } return sb . toString ( ) ; }
Constructs a URI. The final slash will always be removed.
<p>
No encoding or replacement will be done.
</p>
The paths can be null or empty, in this case they wont be added.

@param paths the paths
@return the built path