|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.stat.RawDataExportHandler
public abstract class RawDataExportHandler
Abstract class of all Raw data export handler
Field Summary | |
---|---|
protected String |
filenameBase
|
protected String |
key
|
protected OutputStream |
out
|
protected OutputStream |
realOutput
|
static String |
REVISION
|
protected boolean |
useCompressStream
|
protected String |
userLang
|
Constructor Summary | |
---|---|
RawDataExportHandler()
|
Method Summary | |
---|---|
Object |
clone()
|
abstract String |
convertField(String name,
Class<?> clazz,
Set<?> valueSet,
String extraFieldName,
String userLang)
convert field to handler data |
abstract List<String> |
duplicateHeader(String string,
Class<?> clazz)
indicate if a field have other representation (like member have id and also a name) |
abstract void |
end(OutputStream out)
Process end of export (after any write) |
abstract void |
exportFooter(OutputStream out,
String[] columnNames)
export footer of data |
abstract void |
exportHeader(OutputStream out,
String[] columnNames)
Export header of data |
abstract void |
exportLine(OutputStream out,
String[] data)
Export a line of data |
abstract String |
getConfigurationFragmentPath()
indicates the path of the jsp fragment with driver configuration fields |
abstract String |
getContentType()
|
abstract String |
getFileExtension()
|
String |
getFilenameBase()
|
String |
getKey()
|
OutputStream |
getOut()
|
String |
getUserLang()
|
abstract void |
init(OutputStream out)
Initialise the handler (before any write) |
boolean |
isUseCompressStream()
|
void |
setFilenameBase(String filenameBase)
|
void |
setKey(String key)
|
void |
setOut(OutputStream out)
|
void |
setParameters(JcmsContext context)
update handler from parameters form |
void |
setUseCompressStream(boolean useCompressStream)
|
void |
setUserLang(String userLang)
|
boolean |
validateParameters(JcmsContext context)
validate current parameter. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
protected OutputStream out
protected OutputStream realOutput
protected boolean useCompressStream
protected String key
protected String userLang
protected String filenameBase
Constructor Detail |
---|
public RawDataExportHandler()
Method Detail |
---|
public String getUserLang()
public void setUserLang(String userLang)
public OutputStream getOut()
public void setOut(OutputStream out)
public boolean isUseCompressStream()
public void setUseCompressStream(boolean useCompressStream)
public String getKey()
public void setKey(String key)
public String getFilenameBase()
public void setFilenameBase(String filenameBase)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void setParameters(JcmsContext context)
context
- the current JcmsContext
public boolean validateParameters(JcmsContext context)
context
- the JcmsContext
public abstract String getConfigurationFragmentPath()
public abstract void exportLine(OutputStream out, String[] data) throws IOException
out
- outputstream associated to this handlerdata
- the data array
IOException
public abstract void exportHeader(OutputStream out, String[] columnNames) throws IOException
out
- outputstream associated to this handlercolumnNames
- the names of columns
IOException
public abstract void exportFooter(OutputStream out, String[] columnNames) throws IOException
out
- outputstream associated to this handlercolumnNames
- footer data
IOException
public abstract void init(OutputStream out) throws IOException
out
- outputstream associated to this handler
IOException
public abstract void end(OutputStream out) throws IOException
out
- outputstream associated to this handler
IOException
public abstract String convertField(String name, Class<?> clazz, Set<?> valueSet, String extraFieldName, 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 language
public abstract List<String> duplicateHeader(String string, 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 String getFileExtension()
public abstract String getContentType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |