Package com.enonic.xp.resource

## Class BytesResource

- java.lang.Object
- - com.enonic.xp.resource.ResourceBase
  - - com.enonic.xp.resource.BytesResource

- All Implemented Interfaces:
    `Resource`

      @Deprecated
      public final class BytesResource
      extends ResourceBase

  Deprecated.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BytesResource​(ResourceKey key, byte[] bytes)` | Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `exists()` | Deprecated.
    `ByteSource` | `getBytes()` | Deprecated.
    `String` | `getResolverName()` | Deprecated.
    `long` | `getSize()` | Deprecated.
    `long` | `getTimestamp()` | Deprecated.
    `URL` | `getUrl()` | Deprecated.

    - ### Methods inherited from class com.enonic.xp.resource.ResourceBase

      `getKey, handleError, openReader, openStream, readBytes, readLines, readString, requireExists`

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

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

- - ### Constructor Detail

    - #### BytesResource

          public BytesResource​(ResourceKey key,
                               byte[] bytes)

      Deprecated.

  - ### Method Detail

    - #### getUrl

          public URL getUrl()

      Deprecated.

    - #### exists

          public boolean exists()

      Deprecated.

    - #### getSize

          public long getSize()

      Deprecated.

    - #### getTimestamp

          public long getTimestamp()

      Deprecated.

    - #### getBytes

          public ByteSource getBytes()

      Deprecated.

    - #### getResolverName

          public String getResolverName()

      Deprecated.