Java URI Value Check validateUri(String uri)

Here you can find the source of validateUri(String uri)

Description

validate Uri

License

Apache License

Declaration

public static void validateUri(String uri) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.URI;

public class Main {
    public static void validateUri(String uri) {
        try {/*from ww w .java  2  s  . c o m*/
            new URI(uri);
        } catch (Exception e) {
            throw new Error(e);
        }
    }
}

Related

  1. isValidURIReference(String uriRef)
  2. isVirtual(URI locationURI)
  3. isVSO(final URI uri)
  4. isWellFormedUriString(final String uriString)
  5. validateURI(final String uri)
  6. validateURI(String uri)
  7. validateUri(String uri)
  8. validateUri(String uri, String name)