public class XmlRawDataExportHandler extends RawDataExportHandler
filenameBase, key, out, realOutput, REVISION, useCompressStream, userLang
Constructor and Description |
---|
XmlRawDataExportHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertField(java.lang.String name,
java.lang.Class<?> clazz,
java.util.Set<?> valueSet,
java.lang.String extraFieldName,
java.lang.String userLang)
convert field to handler data
|
java.util.List<java.lang.String> |
duplicateHeader(java.lang.String string,
java.lang.Class<?> clazz)
indicate if a field have other representation (like member have id and also a name)
|
void |
end(java.io.OutputStream out)
Process end of export (after any write)
|
void |
exportFooter(java.io.OutputStream out,
java.lang.String[] columnNames)
export footer of data
|
void |
exportHeader(java.io.OutputStream out,
java.lang.String[] columnNames)
Export header of data
|
void |
exportLine(java.io.OutputStream out,
java.lang.String[] columnNames)
Export a line of data
|
java.lang.String |
getConfigurationFragmentPath()
indicates the path of the jsp fragment with driver configuration fields
|
java.lang.String |
getContentType() |
java.lang.String |
getFileExtension() |
void |
init(java.io.OutputStream out)
Initialise the handler (before any write)
|
clone, getFilenameBase, getKey, getOut, getUserLang, isUseCompressStream, setFilenameBase, setKey, setOut, setParameters, setUseCompressStream, setUserLang, validateParameters
public java.lang.String convertField(java.lang.String name, java.lang.Class<?> clazz, java.util.Set<?> valueSet, java.lang.String extraFieldName, java.lang.String userLang)
RawDataExportHandler
convertField
in class RawDataExportHandler
name
- the name of the field (see StatEntry.STAT_FIELDS
)clazz
- the class of the field (see StatEntry.STAT_FIELDS_CLASS
)valueSet
- the Set
of valueextraFieldName
- the duplicate field name if useduserLang
- the current languagepublic java.util.List<java.lang.String> duplicateHeader(java.lang.String string, java.lang.Class<?> clazz)
RawDataExportHandler
duplicateHeader
in class RawDataExportHandler
string
- the name of the field (see StatEntry.STAT_FIELDS
)clazz
- the class of the field (see StatEntry.STAT_FIELDS_CLASS
)List
of other representation namepublic void init(java.io.OutputStream out) throws java.io.IOException
RawDataExportHandler
init
in class RawDataExportHandler
out
- outputstream associated to this handlerjava.io.IOException
public void exportFooter(java.io.OutputStream out, java.lang.String[] columnNames) throws java.io.IOException
RawDataExportHandler
exportFooter
in class RawDataExportHandler
out
- outputstream associated to this handlercolumnNames
- footer datajava.io.IOException
public void exportHeader(java.io.OutputStream out, java.lang.String[] columnNames) throws java.io.IOException
RawDataExportHandler
exportHeader
in class RawDataExportHandler
out
- outputstream associated to this handlercolumnNames
- the names of columnsjava.io.IOException
public void exportLine(java.io.OutputStream out, java.lang.String[] columnNames) throws java.io.IOException
RawDataExportHandler
exportLine
in class RawDataExportHandler
out
- outputstream associated to this handlercolumnNames
- the data arrayjava.io.IOException
public java.lang.String getConfigurationFragmentPath()
RawDataExportHandler
getConfigurationFragmentPath
in class RawDataExportHandler
public void end(java.io.OutputStream out) throws java.io.IOException
RawDataExportHandler
end
in class RawDataExportHandler
out
- outputstream associated to this handlerjava.io.IOException
public java.lang.String getFileExtension()
getFileExtension
in class RawDataExportHandler
public java.lang.String getContentType()
getContentType
in class RawDataExportHandler
Copyright © 2001-2010 Jalios SA. All Rights Reserved.