Here you can find the source of createExtensionUri(final String ext)
Parameter | Description |
---|---|
ext | The extension (e.g. 'txt') |
static URI createExtensionUri(final String ext)
//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 va 2 s . co m*/ * Static helper to construct appropriate URIs for file-extensions format * specifiers. * @param ext The extension (e.g. 'txt') * @return the extension as a format URI */ static URI createExtensionUri(final String ext) { return URI.create(EXT_URI_PREFIX + ext.toLowerCase()); } }