public class DetailFileManager
extends FileManager
Modifier | Constructor and Description |
---|---|
protected |
DetailFileManager(String fileName,
OutputStream outputStream,
DetailFileManager._LogFiles logFiles,
long maxFileSize,
boolean locking,
int bufferSize,
Layout<? extends Serializable> layout)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkRollover()
Checks if a rollover should occur.
|
static DetailFileManager |
getFileManager(String directory,
String fileNamePrefix,
int maxBackups,
String fileNameSuffix,
long maxFileSize,
boolean locking,
int bufferSize,
Layout<? extends Serializable> layout)
Gets the detail file manager.
|
protected OutputStream |
getOutputStream() |
protected void |
write(byte[] bytes,
int offset,
int length) |
createOutputStream, getBufferSize, getContentFormat, getFileManager, getFileName, isAppend, isCreateOnDemand, isLocking, write, writeToDestination
closeOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, writeFooter
protected DetailFileManager(String fileName, OutputStream outputStream, DetailFileManager._LogFiles logFiles, long maxFileSize, boolean locking, int bufferSize, Layout<? extends Serializable> layout)
fileName
- The file name.outputStream
- The output stream.logFiles
- The log files.maxFileSize
- The maximum file size.locking
- True if the file should be locked.bufferSize
- Buffer size for buffered IO.layout
- The layout.public static DetailFileManager getFileManager(String directory, String fileNamePrefix, int maxBackups, String fileNameSuffix, long maxFileSize, boolean locking, int bufferSize, Layout<? extends Serializable> layout)
directory
- The log file directory.fileNamePrefix
- The log file name prefix.maxBackups
- The maximum number of backup files.fileNameSuffix
- The log file name suffix.maxFileSize
- The maximum file size.locking
- True if the file should be locked.bufferSize
- Buffer size for buffered IO.layout
- The layout.@CheckReturnValue public boolean checkRollover()
protected OutputStream getOutputStream()
getOutputStream
in class OutputStreamManager
protected void write(byte[] bytes, int offset, int length)
write
in class OutputStreamManager
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.