Resources (Apache Commons Codec 1.22.1 API)
Description: declaration: package: org.apache.commons.codec, class: Resources

Package org.apache.commons.codec

# Class Resources

java.lang.Object
org.apache.commons.codec.Resources

public class Resources extends Object
Consider this class package private. Helps load resources.

Since:
  1.12

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Resources()`
  Deprecated.
  TODO Make private in 2.0.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static InputStream`
  `getInputStream(String name)`
  Gets an InputStream on the contents of the resource specified by `name`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Resources

    @Deprecated public Resources()
    Deprecated.
    TODO Make private in 2.0.
    TODO Make private in 2.0.

- ## Method Details

  - ### getInputStream

    public static InputStream getInputStream(String name)
    Gets an InputStream on the contents of the resource specified by `name`. The mapping between the resource name and the stream is managed by this class's class loader.
    Parameters:
      `name` - The resource name.
    Returns:
      An input stream.
    See Also:
      - `ClassLoader.getResourceAsStream(String)`