Java URI Create getURIsPrettyPrint(final Collection uris)

Here you can find the source of getURIsPrettyPrint(final Collection uris)

Description

Returns a string describing of a collection of URI objects.

License

Open Source License

Parameter

Parameter Description
uris the collection of URI objects.

Return

the string describing uris

Declaration

public static String getURIsPrettyPrint(final Collection<URI> uris) 

Method Source Code


//package com.java2s;
import java.util.*;

import java.net.URI;

public class Main {
    /**//from w  w w .j  ava  2  s.c om
     * Returns a string describing of a collection of URI objects.
     *
     * @param uris the collection of URI objects.
     * @return the string describing uris
     */
    public static String getURIsPrettyPrint(final Collection<URI> uris) {
        final StringBuilder builder = new StringBuilder(uris.size() << 4).append("[ ");
        for (URI uri : uris)
            builder.append(uri.getFragment()).append(", ");
        builder.replace(builder.length() - 2, builder.length(), " ]");
        return builder.toString();
    }
}

Related

  1. getURIName(String forwardSlashPath)
  2. getURIName(URI uri)
  3. getURIParameterValue(URI uri, String name, String defVal)
  4. getURIs(final Object[] objs)
  5. getUriScheme(String address)
  6. getURIStream(Object obj)
  7. getURIWithAuthority(URI uri, String authority)
  8. stringToUri(String fileString)
  9. stringToURI(String[] str)