|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.importer.Importer
public class Importer
Principal class responsible for importing documents.
Field Summary | |
---|---|
static String |
DOC_CONTENT_TYPE
|
static String |
DOC_REFERENCE
|
static String |
IMPORTER_PREFIX
|
Constructor Summary | |
---|---|
Importer()
Creates a new importer with default configuration. |
|
Importer(ImporterConfig importerConfig)
Creates a new importer with the given configuration. |
Method Summary | |
---|---|
boolean |
importDocument(File input,
ContentType contentType,
File output,
Properties metadata,
String docReference)
Imports a document according to the importer configuration. |
boolean |
importDocument(File input,
File output,
Properties metadata)
Imports a document according to the importer configuration. |
boolean |
importDocument(InputStream input,
ContentType contentType,
Writer output,
Properties metadata,
String docReference)
Imports a document according to the importer configuration. |
boolean |
importDocument(InputStream input,
Writer output,
Properties metadata)
Imports a document according to the importer configuration. |
static void |
main(String[] args)
Invokes the importer from the command line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IMPORTER_PREFIX
public static final String DOC_REFERENCE
public static final String DOC_CONTENT_TYPE
Constructor Detail |
---|
public Importer()
public Importer(ImporterConfig importerConfig)
importerConfig
- Method Detail |
---|
public static void main(String[] args)
args
- Invoke it once without any arguments to get a
list of command-line options.public boolean importDocument(InputStream input, Writer output, Properties metadata) throws IOException
input
- document inputoutput
- document outputmetadata
- the document starting metadata
true
if the document has successfully been imported,
false
if the document was rejected (i.e. filtered)
IOException
- problem importing documentpublic boolean importDocument(InputStream input, ContentType contentType, Writer output, Properties metadata, String docReference) throws IOException
input
- document inputcontentType
- document content-typeoutput
- document outputmetadata
- the document starting metadatadocReference
- document reference (e.g. URL, file path, etc)
true
if the document has successfully been imported,
false
if the document was rejected (i.e. filtered)
IOException
- problem importing documentpublic boolean importDocument(File input, File output, Properties metadata) throws IOException
input
- document inputoutput
- document outputmetadata
- the document starting metadata
true
if the document has successfully been imported,
false
if the document was rejected (i.e. filtered)
IOException
- problem importing documentpublic boolean importDocument(File input, ContentType contentType, File output, Properties metadata, String docReference) throws IOException
input
- document inputcontentType
- document content-typeoutput
- document outputmetadata
- the document starting metadatadocReference
- document reference (e.g. URL, file path, etc)
true
if the document has successfully been imported,
false
if the document was rejected (i.e. filtered)
IOException
- problem importing document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |