public class Doc extends Object
Constructor and Description |
---|
Doc(DocInfo docInfo,
CachedInputStream content)
Creates a blank importer document using the supplied input stream
to handle content.
|
Doc(DocInfo docInfo,
CachedInputStream content,
Properties metadata)
Creates a blank importer document using the supplied input stream
to handle content.
|
Doc(String reference,
CachedInputStream content) |
Doc(String reference,
CachedInputStream content,
Properties metadata) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of any resources associated with this document (like
disk or memory cache).
|
boolean |
equals(Object other) |
CachedInputStream |
getContent()
Deprecated.
Since 3.0.0, use
getInputStream() |
DocInfo |
getDocInfo() |
CachedInputStream |
getInputStream() |
Properties |
getMetadata() |
String |
getReference()
Gets the document reference.
|
CachedStreamFactory |
getStreamFactory() |
int |
hashCode() |
void |
setContent(CachedInputStream content)
Deprecated.
Since 3.0.0, use
setInputStream(InputStream) |
void |
setInputStream(InputStream inputStream) |
String |
toString() |
public Doc(String reference, CachedInputStream content)
public Doc(String reference, CachedInputStream content, Properties metadata)
public Doc(DocInfo docInfo, CachedInputStream content)
docInfo
- document detailscontent
- content input streampublic Doc(DocInfo docInfo, CachedInputStream content, Properties metadata)
docInfo
- document detailscontent
- content input streammetadata
- importer document metadatapublic void dispose() throws IOException
IOException
- could not dispose of document resources@Deprecated public CachedInputStream getContent()
getInputStream()
@Deprecated public void setContent(CachedInputStream content)
setInputStream(InputStream)
content
- cached input streampublic CachedInputStream getInputStream()
public void setInputStream(InputStream inputStream)
public CachedStreamFactory getStreamFactory()
public DocInfo getDocInfo()
public Properties getMetadata()
public String getReference()
DocInfo.getReference()
.getDocInfo()
Copyright © 2009–2023 Norconex Inc.. All rights reserved.