public class FileOverwriterOutputWriter extends AbstractOutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
static java.lang.String |
SETTING_FILE_NAME |
static java.lang.String |
SETTING_FILE_NAME_DEFAULT_VALUE |
static java.lang.String |
SETTING_SHOW_TIMESTAMP |
static java.lang.Boolean |
SETTING_SHOW_TIMESTAMP_DEFAULT |
protected java.lang.Boolean |
showTimeStamp |
protected java.io.File |
temporaryFile |
protected java.io.Writer |
temporaryFileWriter |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
FileOverwriterOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.Writer |
getTemporaryFileWriter() |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(java.util.Map<java.lang.String,java.lang.String> settings) |
protected void |
releaseTemporaryWriter() |
void |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
void |
writeQueryResult(java.lang.String name,
java.lang.String type,
java.lang.Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroypublic static final java.lang.String SETTING_FILE_NAME
public static final java.lang.String SETTING_FILE_NAME_DEFAULT_VALUE
public static final java.lang.String SETTING_SHOW_TIMESTAMP
public static final java.lang.Boolean SETTING_SHOW_TIMESTAMP_DEFAULT
protected java.io.Writer temporaryFileWriter
protected java.io.File temporaryFile
protected java.io.File file
protected java.lang.Boolean showTimeStamp
public void postConstruct(java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected java.io.Writer getTemporaryFileWriter()
throws java.io.IOException
java.io.IOExceptionpublic void writeInvocationResult(java.lang.String invocationName,
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterjava.io.IOExceptionpublic void writeQueryResult(@Nonnull
java.lang.String name,
@Nullable
java.lang.String type,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritertype - see Query.typejava.io.IOExceptionprotected void releaseTemporaryWriter()
public void postCollect()
throws java.io.IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterjava.io.IOExceptionCopyright © 2018. All Rights Reserved.