public class AddMetaDataValue extends java.lang.Object implements CommandOutputCapture
CommandOutputCapture
that saves the output of the system command to a metadata valueConstructor and Description |
---|
AddMetaDataValue() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding() |
java.lang.String |
getMetadataKey() |
java.lang.Boolean |
getStrip() |
void |
setEncoding(java.lang.String encoding)
Set the character encoding to interpret the output of the command.
|
void |
setMetadataKey(java.lang.String metadataKey)
The metadata key under which the output of the command is to be stored.
|
void |
setStrip(java.lang.Boolean strip)
Whether to strip whitespace like newlines, spaces and tabs from the command output.
|
java.io.OutputStream |
startCapture(AdaptrisMessage msg)
Capture the output from the process.
|
public java.io.OutputStream startCapture(AdaptrisMessage msg) throws java.io.IOException
CommandOutputCapture
startCapture
in interface CommandOutputCapture
msg
- the adaptris message.java.io.IOException
- if an outputstream couldn't be created.public java.lang.String getMetadataKey()
public void setMetadataKey(java.lang.String metadataKey)
metadataKey
- public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- public java.lang.Boolean getStrip()
public void setStrip(java.lang.Boolean strip)
strip
-