Class PDFBoxResourceLoader


  • public class PDFBoxResourceLoader
    extends Object
    • Constructor Detail

      • PDFBoxResourceLoader

        public PDFBoxResourceLoader()
    • Method Detail

      • init

        public static void init​(Context context)
        Initializes the loader
        Parameters:
        context - the context of the calling app
      • isReady

        public static boolean isReady()
        Checks whether the loader has been initialized
        Returns:
        whether the loader has been initialized or not
      • getStream

        public static InputStream getStream​(String path)
                                     throws IOException
        Loads a resource file located in the assets folder
        Parameters:
        path - the path to the resource
        Returns:
        the resource as an InputStream
        Throws:
        IOException - if the resource cannot be found