Package com.adaptris.hpcc.arguments
Class XMLSprayFormat
- java.lang.Object
-
- com.adaptris.hpcc.arguments.SprayFormat
-
- com.adaptris.hpcc.arguments.XMLSprayFormat
-
- All Implemented Interfaces:
ComponentLifecycleExtension
public class XMLSprayFormat extends SprayFormat
SprayFormat implementation that allows the configuration of command specific arguments forformat=xml
sprays.rowTag yes The XML tag identifying each record. N/A encoding no One of the following: utf8 utf8n utf16 utf16le utf16be utf32 utf32le utf32be utf8 maxrecordsize no The maximum size of each record, in bytes. 8192 NOTE: Defaults are driven by dfuplus command them selves, they will not be set unless explicitly set.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adaptris.hpcc.arguments.SprayFormat
SprayFormat.ENCODING
-
-
Constructor Summary
Constructors Constructor Description XMLSprayFormat()
XMLSprayFormat(java.lang.String rowTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommandSpecificArguments(org.apache.commons.exec.CommandLine cmdLine)
java.lang.String
encoding()
SprayFormat.ENCODING
getEncoding()
java.lang.String
getFormat()
java.lang.Integer
getMaxRecordSize()
java.lang.String
getRowTag()
void
prepare()
void
setEncoding(SprayFormat.ENCODING encoding)
void
setMaxRecordSize(java.lang.Integer maxRecordSize)
void
setRowTag(java.lang.String rowTag)
-
Methods inherited from class com.adaptris.hpcc.arguments.SprayFormat
addArguments
-
-
-
-
Method Detail
-
prepare
public void prepare() throws CoreException
- Throws:
CoreException
-
addCommandSpecificArguments
public void addCommandSpecificArguments(org.apache.commons.exec.CommandLine cmdLine)
-
getRowTag
public java.lang.String getRowTag()
-
setRowTag
public void setRowTag(java.lang.String rowTag)
-
getFormat
public java.lang.String getFormat()
-
setEncoding
public void setEncoding(SprayFormat.ENCODING encoding)
-
getEncoding
public SprayFormat.ENCODING getEncoding()
-
encoding
public java.lang.String encoding()
-
setMaxRecordSize
public void setMaxRecordSize(java.lang.Integer maxRecordSize)
-
getMaxRecordSize
public java.lang.Integer getMaxRecordSize()
-
-