-
- All Implemented Interfaces:
-
org.readium.r2.shared.fetcher.Resource,org.readium.r2.shared.util.SuspendingCloseable
public final class StringResource extends BaseBytesResource
Creates a Resource serving a String.
-
-
Constructor Summary
Constructors Constructor Description StringResource(Link link, String string)StringResource(Link link, SuspendFunction0<String> string)
-
Method Summary
-
Methods inherited from class org.readium.r2.shared.fetcher.BaseBytesResource
close, getBytes, getLink, length, link, read -
Methods inherited from class org.readium.r2.shared.fetcher.Resource
getFile, readAsBitmap, readAsJson, readAsString, readAsXml -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-