Tabnine Logo
ObjectUtilities.getResourceRelativeAsStream
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jfree/jcommon

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
origin: org.jfree/jcommon

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
origin: jfree/jcommon

final InputStream in = ObjectUtilities.getResourceRelativeAsStream
    (resourceName, resourceSource);
if (in != null)
origin: org.jfree/com.springsource.org.jfree

final InputStream in = ObjectUtilities.getResourceRelativeAsStream
    (resourceName, resourceSource);
if (in != null)
origin: org.jfree/jcommon

final InputStream in = ObjectUtilities.getResourceRelativeAsStream
    (resourceName, resourceSource);
if (in != null)
origin: jfree/jcommon

/**
 * Configures the module by loading the configuration properties and
 * adding them to the package configuration.
 *
 * @param subSystem  the subsystem.
 */
public void configure(final SubSystem subSystem)
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("configuration.properties", getClass());
 if (in == null)
 {
  return;
 }
 try
 {
  subSystem.getPackageManager().getPackageConfiguration().load(in);
 }
 finally
 {
  try
  {
   in.close();
  }
  catch (IOException e)
  {
   // can be ignored ...
  }
 }
}
origin: org.jfree/jcommon

/**
 * Configures the module by loading the configuration properties and
 * adding them to the package configuration.
 *
 * @param subSystem  the subsystem.
 */
public void configure(final SubSystem subSystem)
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("configuration.properties", getClass());
 if (in == null)
 {
  return;
 }
 try
 {
  subSystem.getPackageManager().getPackageConfiguration().load(in);
 }
 finally
 {
  try
  {
   in.close();
  }
  catch (IOException e)
  {
   // can be ignored ...
  }
 }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Configures the module by loading the configuration properties and
 * adding them to the package configuration.
 * 
 * @param subSystem  the subsystem.
 */
public void configure(final SubSystem subSystem)
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("configuration.properties", getClass());
 if (in == null)
 {
  return;
 }
 try
 {
  subSystem.getPackageManager().getPackageConfiguration().load(in);
 }
 finally
 {
  try
  {
   in.close();
  }
  catch (IOException e)
  {
   // can be ignored ...
  }
 }
}
org.jfree.utilObjectUtilitiesgetResourceRelativeAsStream

Javadoc

Returns the inputstream for the resource specified by the relative name.

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
  • convertName
    Transform the class-relative resource name into a global name by appending it to the classes package
  • 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.
  • 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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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