Writer
AbstractFileBasedWriter
, JdbcWriter
, LogcatWriter
public abstract class AbstractWriter extends java.lang.Object implements Writer
Constructor | Description |
---|---|
AbstractWriter(java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
getBooleanValue(java.lang.String key) |
Gets the boolean value for the passed key from the configuration properties.
|
java.lang.String |
getStringValue(java.lang.String key) |
Gets the trimmed value for the passed key from the configuration properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush, getRequiredLogEntryValues, write
public AbstractWriter(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- Configuration for writerpublic java.lang.String getStringValue(java.lang.String key)
Leading and trailing spaces of the found value will be removed.
key
- Case-sensitive property keynull
public boolean getBooleanValue(java.lang.String key)
Under the hood, Boolean.parseBoolean(String)
is used with the trimmed string value.
key
- Case-sensitive property keyCopyright © 2022. All rights reserved.