Package com.tom_roush.pdfbox.android
Class PDFBoxResourceLoader
- java.lang.Object
-
- com.tom_roush.pdfbox.android.PDFBoxResourceLoader
-
public class PDFBoxResourceLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description PDFBoxResourceLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStreamgetStream(String path)Loads a resource file located in the assets folderstatic voidinit(Context context)Initializes the loaderstatic booleanisReady()Checks whether the loader has been initialized
-
-
-
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
-
-