Package 

Class ResourceDataProvider

  • All Implemented Interfaces:
    com.pspdfkit.document.providers.DataProvider

    
    public final class ResourceDataProvider
     implements DataProvider
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceDataProvider(Resource resource, Function1<Resource.Exception, Unit> onResourceError)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Long getSize()
      String getTitle()
      String getUid() Unique document identifier used in all caching processes in PSPDFKit.
      ByteArray read(Long size, Long offset)
      Unit release()
      • Methods inherited from class java.lang.Object

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

      • ResourceDataProvider

        ResourceDataProvider(Resource resource, Function1<Resource.Exception, Unit> onResourceError)