Package com.enonic.xp.resource

## Interface Resource

- All Known Implementing Classes:
    `BytesResource`, `MockResource`, `ResourceBase`, `UrlResource`

      public interface Resource

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `exists()` |
    `ByteSource` | `getBytes()` |
    `ResourceKey` | `getKey()` |
    `String` | `getResolverName()` |
    `long` | `getSize()` |
    `long` | `getTimestamp()` |
    `URL` | `getUrl()` | Deprecated.
    `Reader` | `openReader()` |
    `InputStream` | `openStream()` |
    `byte[]` | `readBytes()` |
    `List<String>` | `readLines()` |
    `String` | `readString()` |
    `void` | `requireExists()` |

- - ### Method Detail

    - #### getKey

          ResourceKey getKey()

    - #### getUrl

          @Deprecated
          URL getUrl()

      Deprecated.

    - #### requireExists

          void requireExists()

    - #### exists

          boolean exists()

    - #### getSize

          long getSize()

    - #### getTimestamp

          long getTimestamp()

    - #### openStream

          InputStream openStream()

    - #### openReader

          Reader openReader()

    - #### readString

          String readString()

    - #### readBytes

          byte[] readBytes()

    - #### readLines

          List<String> readLines()

    - #### getBytes

          ByteSource getBytes()

    - #### getResolverName

          String getResolverName()