public abstract class Spewer extends Object implements AutoCloseable, Serializable
ParsingReader to specific
endpoints.| Modifier and Type | Field and Description |
|---|---|
protected FieldNames |
fields |
protected boolean |
outputMetadata |
protected Map<String,String> |
tags |
| Constructor and Description |
|---|
Spewer(FieldNames fields) |
| Modifier and Type | Method and Description |
|---|---|
Spewer |
configure(Options<String> options) |
protected void |
copy(Reader input,
OutputStream output) |
static void |
copy(Reader input,
Writer output) |
FieldNames |
getFields() |
Charset |
getOutputEncoding() |
boolean |
outputMetadata() |
void |
outputMetadata(boolean outputMetadata) |
void |
setOutputEncoding(Charset outputEncoding) |
void |
setTags(Map<String,String> tags) |
static String |
toString(Reader reader) |
TikaDocument[] |
write(Path path) |
abstract void |
write(TikaDocument tikaDocument,
Reader reader) |
abstract void |
writeMetadata(TikaDocument tikaDocument) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected boolean outputMetadata
protected final FieldNames fields
public Spewer(FieldNames fields)
public abstract void write(TikaDocument tikaDocument, Reader reader) throws IOException
IOExceptionpublic abstract void writeMetadata(TikaDocument tikaDocument) throws IOException
IOExceptionpublic TikaDocument[] write(Path path) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic FieldNames getFields()
public void setOutputEncoding(Charset outputEncoding)
public Charset getOutputEncoding()
public void outputMetadata(boolean outputMetadata)
public boolean outputMetadata()
protected void copy(Reader input, OutputStream output) throws IOException
IOExceptionpublic static void copy(Reader input, Writer output) throws IOException
IOExceptionpublic static String toString(Reader reader) throws IOException
IOExceptionCopyright © 2018. All rights reserved.