Skip to content
Snippets Groups Projects
Commit 93501309 authored by Andreas Schärtl's avatar Andreas Schärtl
Browse files

uloimport: add Importer

parent 0d2234b6
No related branches found
No related tags found
No related merge requests found
package info.kwarc.uloimport;
/**
* An Exception caused by an import of ULO/RDF data.
*/
public class ImportException extends RuntimeException {
/**
* Construct a new {@link ImportException} with just a message.
*
* @param message The message associated with this exception.
*/
public ImportException(String message) {
super(message);
}
/**
* Construct a new {@link ImportException} with a message and a cause
* that caused this exception.
*
* @param message The message associated with this exception.
* @param cause The underlying cause of the import error.
*/
public ImportException(String message, Throwable cause) {
super(message, cause);
}
}
package info.kwarc.uloimport;
import java.io.InputStream;
public interface Importer {
/**
* Import the (single) ULO/RDF file at the given input stream to the
* storage underlying this {@link Importer}.
*
* @param is The stream from which to read a single ULO/RDF file.
* @throws ImportException When the import failed.
*/
void importUlo(InputStream is) throws ImportException;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment