Package edu.upf.taln.dri.lib.loader
Interface JATSloader
-
- All Known Implementing Classes:
JATSloaderImpl
public interface JATSloader
Interface to access the JATS XML importing methods of Dr. Inventor.
To get an instance of a JATSloader by theJATSloader interface
, always use theFactory
methodgetJATSloader()
.
-
-
Method Summary
All Methods Instance Methods Abstract 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
Document parseJATS(byte[] JATSbyteArray, String JATSfileName) throws DRIexception
Convert a JATS XML file to aDocument
- Parameters:
JATSbyteArray
- the byte array of the PDF fileJATSfileName
- considered if not null or empty- Returns:
- Throws:
DRIexception
-
parseJATS
Document parseJATS(String absoluteFilePath) throws DRIexception
Convert a JATS XML file to aDocument
- Parameters:
absoluteFilePath
- the absolute path of the PDF file to convert- Returns:
- Throws:
DRIexception
-
parseJATS
Document parseJATS(File file) throws DRIexception
Convert a JATS XML file to aDocument
- Parameters:
file
- the PDF file to convert- Returns:
- Throws:
DRIexception
-
parseJATS
Document parseJATS(URL url) throws DRIexception
Convert a JATS XML file to aDocument
- Parameters:
url
- the URL of the file to convert- Returns:
- Throws:
DRIexception
-
-