Package 

Class ResourceAsset

  • All Implemented Interfaces:
    org.readium.r2.shared.util.SuspendingCloseable

    
    public final class ResourceAsset
    extends Asset
                        

    A single resource asset.

    • Method Summary

      Modifier and Type Method Description
      Format getFormat()
      final Resource getResource()
      Unit close() Closes this object and releases any resources associated with it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceAsset

        ResourceAsset(Format format, Resource resource)
        Parameters:
        format - Format of the asset.
        resource - Opened resource to access the asset.
    • Method Detail

      • close

         Unit close()

        Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.