Package org.pkl.core.resource
Class Resource
- java.lang.Object
-
- org.pkl.core.resource.Resource
-
public final class Resource extends java.lang.ObjectAn external (file, HTTP, etc.) resource.
-
-
Constructor Summary
Constructors Constructor Description Resource(java.net.URI uri, byte[] bytes)Constructs a resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBase64()Returns the content of this resource in Base64.byte[]getBytes()java.lang.StringgetText()Returns the text content of this resource.java.net.URIgetUri()Returns the URI of this resource.
-