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 TypeMethodDescriptionbooleanexecute()Performs action.protected abstract StringThe name of this compression algorithm.protected voidCapture exception.toString()protected abstract OutputStreamwrapOutputStream(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:AbstractActionPerforms action.- Specified by:
executein interfaceAction- Specified by:
executein classAbstractAction- Returns:
- true if successful.
- Throws:
IOException- if IO error.
-
reportException
Capture exception.- Overrides:
reportExceptionin classAbstractAction- Parameters:
ex- exception.
-
toString
-