congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ObjectUtilities.convertName
Code IndexAdd Tabnine to your IDE (free)

How to use
convertName
method
in
org.jfree.util.ObjectUtilities

Best Java code snippets using org.jfree.util.ObjectUtilities.convertName (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Returns the resource specified by the <strong>relative</strong> name.
 *
 * @param name the name of the resource relative to the given class
 * @param c    the source class
 * @return the url of the resource or null, if not found.
 */
public static URL getResourceRelative(final String name, final Class c) {
  final ClassLoader cl = getClassLoader(c);
  final String cname = convertName(name, c);
  if (cl == null) {
    return null;
  }
  return cl.getResource(cname);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the resource specified by the <strong>relative</strong> name.
 *
 * @param name the name of the resource relative to the given class
 * @param c    the source class
 * @return the url of the resource or null, if not found.
 */
public static URL getResourceRelative(final String name, final Class c) {
  final ClassLoader cl = getClassLoader(c);
  final String cname = convertName(name, c);
  if (cl == null) {
    return null;
  }
  return cl.getResource(cname);
}
origin: org.jfree/jcommon

/**
 * Returns the resource specified by the <strong>relative</strong> name.
 *
 * @param name the name of the resource relative to the given class
 * @param c    the source class
 * @return the url of the resource or null, if not found.
 */
public static URL getResourceRelative(final String name, final Class c) {
  final ClassLoader cl = getClassLoader(c);
  final String cname = convertName(name, c);
  if (cl == null) {
    return null;
  }
  return cl.getResource(cname);
}
org.jfree.utilObjectUtilitiesconvertName

Javadoc

Transform the class-relative resource name into a global name by appending it to the classes package name. If the name is already a global name (the name starts with a "/"), then the name is returned unchanged.

Popular methods of ObjectUtilities

  • equal
    Returns true if the two objects are equal OR bothnull.
  • clone
    Returns a clone of the specified object, if it can be cloned, otherwise throws a CloneNotSupportedEx
  • getClassLoader
    Returns the classloader, which was responsible for loading the given class.
  • getClassLoaderSource
    Returns the internal configuration entry, whether the classloader of the thread context or the conte
  • getResource
    Returns the resource specified by the absolute name.
  • getResourceRelative
    Returns the resource specified by the relative name.
  • getResourceRelativeAsStream
    Returns the inputstream for the resource specified by therelative name.
  • loadAndInstantiate
    Tries to create a new instance of the given class. This is a short cut for the common bean instantia
  • parseVersions
  • setClassLoaderSource
    Defines the internal configuration entry, whether the classloader of the thread context or the conte
  • deepClone
    Returns a new collection containing clones of all the items in the specified collection.
  • hashCode
    Returns a hash code for an object, or zero if the object isnull.
  • deepClone,
  • hashCode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now