public class AsciiWriter<C extends ApplicationContext> extends AbstractAsyncExecutable<C> implements java.io.Closeable
childTaskRef, isTestMode, monitorController, resultRef, stateFlag| Constructor and Description |
|---|
AsciiWriter(C ctx,
java.io.ByteArrayOutputStream stream) |
AsciiWriter(C ctx,
java.io.ByteArrayOutputStream stream,
int buffSize) |
AsciiWriter(C ctx,
java.io.File file) |
AsciiWriter(C ctx,
FileInfo fileInfo,
java.io.OutputStream stream) |
AsciiWriter(C ctx,
FileInfo fileInfo,
java.io.OutputStream stream,
int buffSize) |
AsciiWriter(C ctx,
java.io.File file,
int buffSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected java.io.FileOutputStream |
createFileOutputStream(java.io.File file) |
void |
executeAsync()
Contains the code to be executed asynchronously.
|
void |
flush() |
FileInfo |
getFileInfo() |
java.io.File |
getOutputFile() |
long |
getWrittenByteCount() |
int |
getWrittenLineCount() |
int |
getWrittenOperationCount() |
void |
openFile() |
protected void |
performWrite() |
void |
write(AsciiLine line) |
void |
write(AsciiWord word) |
void |
write(byte[] bytes) |
void |
write(byte[] data,
int start,
int length) |
void |
write(char value) |
void |
write(double value) |
void |
write(float value) |
void |
write(int value) |
void |
write(long value) |
void |
write(java.lang.String text) |
void |
write(java.lang.String format,
java.lang.Object... args) |
void |
writeLine() |
void |
writeLine(java.lang.String line) |
void |
writeLine(java.lang.String format,
java.lang.Object... args) |
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, executeSubTask, executeSync, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelledgetApplicationConfig, getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApplicationContextgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelpublic AsciiWriter(C ctx, java.io.File file)
public AsciiWriter(C ctx, java.io.File file, int buffSize)
public AsciiWriter(C ctx, java.io.ByteArrayOutputStream stream)
public AsciiWriter(C ctx, java.io.ByteArrayOutputStream stream, int buffSize)
public final void openFile()
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic final FileInfo getFileInfo()
public final java.io.File getOutputFile()
public final void executeAsync()
throws java.lang.Exception
AsyncExecutableRunnable.run() for async execution.executeAsync in interface AsyncExecutable<C extends ApplicationContext>java.lang.Exceptionfor synchronous executionprotected void performWrite()
throws java.lang.Exception
java.lang.Exceptionprotected java.io.FileOutputStream createFileOutputStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic final long getWrittenByteCount()
public final int getWrittenLineCount()
public final int getWrittenOperationCount()
public final void write(byte[] bytes)
throws java.io.IOException
java.io.IOExceptionpublic final void write(int value)
throws java.io.IOException
java.io.IOExceptionpublic final void write(long value)
throws java.io.IOException
java.io.IOExceptionpublic final void write(float value)
throws java.io.IOException
java.io.IOExceptionpublic final void write(double value)
throws java.io.IOException
java.io.IOExceptionpublic final void write(char value)
throws java.io.IOException
java.io.IOExceptionpublic final void write(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic final void write(AsciiWord word) throws java.io.IOException
java.io.IOExceptionpublic final void write(AsciiLine line) throws java.io.IOException
java.io.IOExceptionpublic final void writeLine(java.lang.String line)
throws java.io.IOException
java.io.IOExceptionpublic final void writeLine()
throws java.io.IOException
java.io.IOExceptionpublic final void writeLine(java.lang.String format,
java.lang.Object... args)
throws java.io.IOException
java.io.IOExceptionpublic final void write(java.lang.String format,
java.lang.Object... args)
throws java.io.IOException
java.io.IOExceptionpublic final void write(byte[] data,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionpublic final void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2011 EsprIT-Systems. All Rights Reserved.