Here you can find the source of isExtensionUri(final URI uri)
Parameter | Description |
---|---|
uri | The URI to check |
static boolean isExtensionUri(final URI uri)
//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); } }