Class AbstractCompressAction
java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
org.apache.logging.log4j.core.appender.rolling.action.AbstractCompressAction
-
Field Summary
FieldsFields inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
LOGGER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute()
Performs action.protected abstract String
The name of this compression algorithm.protected void
Capture exception.toString()
protected abstract OutputStream
wrapOutputStream
(OutputStream stream) Wraps an output stream into a compressing output stream.Methods inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
close, isComplete, isInterrupted, run
-
Field Details
-
BUF_SIZE
protected static final int BUF_SIZE- See Also:
-
-
Constructor Details
-
AbstractCompressAction
-
-
Method Details
-
getAlgorithmName
The name of this compression algorithm.When applicable, it should correspond to the name used by Apache Commons Compress.
-
wrapOutputStream
Wraps an output stream into a compressing output stream.- Parameters:
stream
- The stream to wrap.- Returns:
- A compressing output stream.
- Throws:
IOException
-
execute
Description copied from class:AbstractAction
Performs action.- Specified by:
execute
in interfaceAction
- Specified by:
execute
in classAbstractAction
- Returns:
- true if successful.
- Throws:
IOException
- if IO error.
-
reportException
Capture exception.- Overrides:
reportException
in classAbstractAction
- Parameters:
ex
- exception.
-
toString
-