Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.webrender.util
Class Resource

    java.lang.Object
      nextapp.echo2.webrender.util.Resource

    public class Resource

extends java.lang.Object

Provides functionality for obtaining text and binary resource files.

Nested Class Summary
`static class` | `Resource.ResourceException` A RuntimeException exception that will be thrown in the event that problems are encountered obtaining a resource.

Method Summary
`static byte[]` | `getResourceAsByteArray(java.lang.String resourceName)` Retrieves the specified resource as an array of `byte`s.
`static java.lang.String` | `getResourceAsString(java.lang.String resourceName)` Retrieves the specified resource as a `String`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getResourceAsString

    public static java.lang.String getResourceAsString(java.lang.String resourceName)

  Retrieves the specified resource as a `String`.

  Parameters:
    `resourceName` - The name of the resource to be retrieved.
  Returns:
    The specified resource as a `String`.

### getResourceAsByteArray

    public static byte[] getResourceAsByteArray(java.lang.String resourceName)

  Retrieves the specified resource as an array of `byte`s.

  Parameters:
    `resourceName` - The name of the resource to be retrieved.
  Returns:
    The specified resource as an array of `byte`s.``

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD