Package com.norconex.importer.doc
Class Doc
java.lang.Object
com.norconex.importer.doc.Doc
- All Implemented Interfaces:
Closeable,AutoCloseable
A document being imported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParentReference(String parentReference) protected booleanvoidclose()Disposes of any resources associated with this document (like disk or memory cache).boolean@NonNull StringinthashCode()setCharset(Charset charset) setContentType(ContentType contentType) setInputStream(@NonNull InputStream inputStream) setMetadata(Properties metadata) setParentReferences(List<String> parentReferences) toString()withReference(String reference)
-
Constructor Details
-
Doc
-
Doc
Copy constructor.- Parameters:
doc- document details to copy
-
-
Method Details
-
setMetadata
-
getParentReferences
-
setParentReferences
-
addParentReference
-
withReference
-
close
Disposes of any resources associated with this document (like disk or memory cache).- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- could not dispose of document resources
-
getInputStream
-
setInputStream
-
getStreamFactory
-
getReference
-
getContentType
-
getCharset
-
getMetadata
-
setContentType
- Returns:
this.
-
setCharset
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-