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 Modifier and Type Method Description boolean
exists()
ByteSource
getBytes()
ResourceKey
getKey()
long
getSize()
long
getTimestamp()
URL
getUrl()
Reader
openReader()
InputStream
openStream()
byte[]
readBytes()
List<String>
readLines()
String
readString()
void
requireExists()
-
-
-
Method Detail
-
getKey
ResourceKey getKey()
-
getUrl
URL getUrl()
-
requireExists
void requireExists()
-
exists
boolean exists()
-
getSize
long getSize()
-
getTimestamp
long getTimestamp()
-
openStream
InputStream openStream()
-
openReader
Reader openReader()
-
readString
String readString()
-
readBytes
byte[] readBytes()
-
getBytes
ByteSource getBytes()
-
-