Package com.enonic.xp.resource
Interface Resource
-
- All Known Implementing Classes:
BytesResource
,ResourceBase
,UrlResource
public interface Resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
exists()
com.google.common.io.ByteSource
getBytes()
ResourceKey
getKey()
long
getSize()
long
getTimestamp()
java.net.URL
getUrl()
java.io.Reader
openReader()
java.io.InputStream
openStream()
byte[]
readBytes()
java.util.List<java.lang.String>
readLines()
java.lang.String
readString()
void
requireExists()
-
-
-
Method Detail
-
getKey
ResourceKey getKey()
-
getUrl
java.net.URL getUrl()
-
requireExists
void requireExists()
-
exists
boolean exists()
-
getSize
long getSize()
-
getTimestamp
long getTimestamp()
-
openStream
java.io.InputStream openStream()
-
openReader
java.io.Reader openReader()
-
readString
java.lang.String readString()
-
readBytes
byte[] readBytes()
-
readLines
java.util.List<java.lang.String> readLines()
-
getBytes
com.google.common.io.ByteSource getBytes()
-
-