public class ImporterRequest extends Object
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 and Description |
---|
ImporterRequest(InputStream inputStream) |
ImporterRequest(Path file) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getContentEncoding() |
ContentType |
getContentType() |
Path |
getFile() |
InputStream |
getInputStream() |
Properties |
getMetadata() |
String |
getReference() |
int |
hashCode() |
ImporterRequest |
setContentEncoding(String contentEncoding) |
ImporterRequest |
setContentType(ContentType contentType) |
ImporterRequest |
setMetadata(Properties metadata) |
ImporterRequest |
setReference(String reference) |
String |
toString() |
public ImporterRequest(InputStream inputStream)
public ImporterRequest(Path file)
public ContentType getContentType()
public ImporterRequest setContentType(ContentType contentType)
public String getContentEncoding()
public ImporterRequest setContentEncoding(String contentEncoding)
public Properties getMetadata()
public ImporterRequest setMetadata(Properties metadata)
public String getReference()
public ImporterRequest setReference(String reference)
public InputStream getInputStream()
public Path getFile()
Copyright © 2009–2023 Norconex Inc.. All rights reserved.