public abstract class RawDataExportHandler
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
filenameBase |
protected java.lang.String |
key |
protected java.io.OutputStream |
out |
protected java.io.OutputStream |
realOutput |
static java.lang.String |
REVISION |
protected boolean |
useCompressStream |
protected java.lang.String |
userLang |
Constructor and Description |
---|
RawDataExportHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
abstract 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
|
abstract 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)
|
abstract void |
end(java.io.OutputStream out)
Process end of export (after any write)
|
abstract void |
exportFooter(java.io.OutputStream out,
java.lang.String[] columnNames)
export footer of data
|
abstract void |
exportHeader(java.io.OutputStream out,
java.lang.String[] columnNames)
Export header of data
|
abstract void |
exportLine(java.io.OutputStream out,
java.lang.String[] data)
Export a line of data
|
abstract java.lang.String |
getConfigurationFragmentPath()
indicates the path of the jsp fragment with driver configuration fields
|
abstract java.lang.String |
getContentType() |
abstract java.lang.String |
getFileExtension() |
java.lang.String |
getFilenameBase() |
java.lang.String |
getKey() |
java.io.OutputStream |
getOut() |
java.lang.String |
getUserLang() |
abstract void |
init(java.io.OutputStream out)
Initialise the handler (before any write)
|
boolean |
isUseCompressStream() |
void |
setFilenameBase(java.lang.String filenameBase) |
void |
setKey(java.lang.String key) |
void |
setOut(java.io.OutputStream out) |
void |
setParameters(JcmsContext context)
update handler from parameters form
|
void |
setUseCompressStream(boolean useCompressStream) |
void |
setUserLang(java.lang.String userLang) |
boolean |
validateParameters(JcmsContext context)
validate current parameter.
|
public static final java.lang.String REVISION
protected java.io.OutputStream out
protected java.io.OutputStream realOutput
protected boolean useCompressStream
protected java.lang.String key
protected java.lang.String userLang
protected java.lang.String filenameBase
public java.lang.String getUserLang()
public void setUserLang(java.lang.String userLang)
public java.io.OutputStream getOut()
public void setOut(java.io.OutputStream out)
public boolean isUseCompressStream()
public void setUseCompressStream(boolean useCompressStream)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getFilenameBase()
public void setFilenameBase(java.lang.String filenameBase)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setParameters(JcmsContext context)
context
- the current JcmsContext
public boolean validateParameters(JcmsContext context)
context
- the JcmsContext
public abstract java.lang.String getConfigurationFragmentPath()
public abstract void exportLine(java.io.OutputStream out, java.lang.String[] data) throws java.io.IOException
out
- outputstream associated to this handlerdata
- the data arrayjava.io.IOException
public abstract void exportHeader(java.io.OutputStream out, java.lang.String[] columnNames) throws java.io.IOException
out
- outputstream associated to this handlercolumnNames
- the names of columnsjava.io.IOException
public abstract void exportFooter(java.io.OutputStream out, java.lang.String[] columnNames) throws java.io.IOException
out
- outputstream associated to this handlercolumnNames
- footer datajava.io.IOException
public abstract void init(java.io.OutputStream out) throws java.io.IOException
out
- outputstream associated to this handlerjava.io.IOException
public abstract void end(java.io.OutputStream out) throws java.io.IOException
out
- outputstream associated to this handlerjava.io.IOException
public abstract java.lang.String convertField(java.lang.String name, java.lang.Class<?> clazz, java.util.Set<?> valueSet, java.lang.String extraFieldName, java.lang.String userLang)
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 abstract java.util.List<java.lang.String> duplicateHeader(java.lang.String string, java.lang.Class<?> clazz)
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 abstract java.lang.String getFileExtension()
public abstract java.lang.String getContentType()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.