Java URI Value Check isWellFormedUriString(final String uriString)

Here you can find the source of isWellFormedUriString(final String uriString)

Description

is Well Formed Uri String

License

Open Source License

Declaration

public static boolean isWellFormedUriString(final String uriString) 

Method Source Code

//package com.java2s;
// Licensed under the MIT license. See sibling License.txt file

import java.net.URI;
import java.net.URISyntaxException;

public class Main {
    public static boolean isWellFormedUriString(final String uriString) {
        try {//from   w ww.j a va 2s  . co  m
            new URI(uriString);
            return true;
        } catch (final URISyntaxException ignored) {
            return false;
        }
    }
}

Related

  1. isValidURI(String uriRef)
  2. isValidURIorEmpty(String uri)
  3. isValidURIReference(String uriRef)
  4. isVirtual(URI locationURI)
  5. isVSO(final URI uri)
  6. validateURI(final String uri)
  7. validateUri(String uri)
  8. validateURI(String uri)
  9. validateUri(String uri)