Java URI Value Check isExtensionUri(final URI uri)

Here you can find the source of isExtensionUri(final URI uri)

Description

is Extension Uri

License

Open Source License

Parameter

Parameter Description
uri The URI to check

Return

true if an extension URI

Declaration

static boolean isExtensionUri(final URI uri) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2007, 2010 The Planets Project Partners.
 *
 * All rights reserved. This program and the accompanying 
 * materials are made available under the terms of the 
 * Apache License, Version 2.0 which accompanies 
 * this distribution, and is available at 
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 *******************************************************************************/

import java.net.URI;

public class Main {
    /** The prefix for extension format URIs. */
    static final String EXT_URI_PREFIX = "planets:fmt/ext/";

    /**/*from   w w  w .  j  a  v  a 2 s  .c  om*/
     * @param uri The URI to check
     * @return true if an extension URI
     */
    static boolean isExtensionUri(final URI uri) {
        return uri.toString().startsWith(EXT_URI_PREFIX);
    }
}

Related

  1. isAvailable(URI address)
  2. isBagUri(final URI uri)
  3. isBase(URI base, URI uri)
  4. isDefaultPort(URI uri)
  5. isDirectory(URI orig)
  6. isFile(final URI uri)
  7. isFile(URI uri)
  8. isFile(URI uri)
  9. isFileSystemAvailable(File file, URI topLevelResource)