Package edu.upf.taln.dri.lib.loader
Class JATSloaderImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.loader.JATSloaderImpl
-
- All Implemented Interfaces:
JATSloader
public class JATSloaderImpl extends Object implements JATSloader
IMPORTANT: Never instantiate directly this class!
Implementation of the JATS loading methods of Dr Inventor.
To get an instance of a JATSloader by theJATSloader interface
, always use theFactory
methodgetJATSloader()
.
-
-
Constructor Summary
Constructors Constructor Description JATSloaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
parseJATS(byte[] JATSbyteArray, String JATSfileName)
Convert a JATS XML file to aDocument
Document
parseJATS(File file)
Convert a JATS XML file to aDocument
Document
parseJATS(String absoluteFilePath)
Convert a JATS XML file to aDocument
Document
parseJATS(URL url)
Convert a JATS XML file to aDocument
-
-
-
Method Detail
-
parseJATS
public Document parseJATS(byte[] JATSbyteArray, String JATSfileName) throws DRIexception
Description copied from interface:JATSloader
Convert a JATS XML file to aDocument
- Specified by:
parseJATS
in interfaceJATSloader
- Parameters:
JATSbyteArray
- the byte array of the PDF fileJATSfileName
- considered if not null or empty- Returns:
- Throws:
DRIexception
-
parseJATS
public Document parseJATS(String absoluteFilePath) throws DRIexception
Description copied from interface:JATSloader
Convert a JATS XML file to aDocument
- Specified by:
parseJATS
in interfaceJATSloader
- Parameters:
absoluteFilePath
- the absolute path of the PDF file to convert- Returns:
- Throws:
DRIexception
-
parseJATS
public Document parseJATS(File file) throws DRIexception
Description copied from interface:JATSloader
Convert a JATS XML file to aDocument
- Specified by:
parseJATS
in interfaceJATSloader
- Parameters:
file
- the PDF file to convert- Returns:
- Throws:
DRIexception
-
parseJATS
public Document parseJATS(URL url) throws DRIexception
Description copied from interface:JATSloader
Convert a JATS XML file to aDocument
- Specified by:
parseJATS
in interfaceJATSloader
- Parameters:
url
- the URL of the file to convert- Returns:
- Throws:
DRIexception
-
-