-
- All Implemented Interfaces:
-
org.readium.r2.shared.fetcher.Resource,org.readium.r2.shared.util.SuspendingCloseable
public final class BytesResource extends BaseBytesResource
Creates a Resource serving ByteArray.
-
-
Constructor Summary
Constructors Constructor Description BytesResource(Link link, ByteArray bytes)BytesResource(Link link, SuspendFunction0<ByteArray> bytes)
-
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
-
-