Package com.norconex.importer
Class ImporterRequest
java.lang.Object
com.norconex.importer.ImporterRequest
An Importer request, unique for each document to be imported.
A
null is accepted for the file or input stream. This can
sometimes be useful when dealing with meta data only.
A null reference can also be provided, in which case the
file name will be used as the reference when a file is provided, or an
empty string when dealing with an input stream. It is recommended
to pass a reference that represents your document when possible (at least
just the filename, including appropriate extension).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetFile()inthashCode()setCharset(Charset charset) setContentType(ContentType contentType) setMetadata(Properties metadata) setReference(String reference) toString()
-
Constructor Details
-
ImporterRequest
-
ImporterRequest
-
-
Method Details
-
getInputStream
-
getFile
-
getContentType
-
getCharset
-
getMetadata
-
getReference
-
setContentType
- Returns:
this.
-
setCharset
- Returns:
this.
-
setMetadata
- Returns:
this.
-
setReference
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-