|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ccl.servlet.CSV
This class encapsulates printing of spread sheet csv data generated by a servlet.
Constructor Summary | |
CSV(javax.servlet.http.HttpServletResponse response)
All following output goes to the given HttpServletResponse object. |
Method Summary | |
void |
close()
This method just closes any open stream. |
void |
endLine()
This method ends a row. |
static void |
exportCSV(javax.servlet.http.HttpServletResponse response,
java.sql.ResultSet result)
This method does not print html output but instead creates a csv file which can be used to import into a spread sheet application like Excel or StarCalc. |
void |
printValue(java.lang.String value)
Fills data into one field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSV(javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Method Detail |
public void endLine()
public void printValue(java.lang.String value)
public void close()
public static void exportCSV(javax.servlet.http.HttpServletResponse response, java.sql.ResultSet result) throws java.io.IOException, java.sql.SQLException
java.io.IOException
- in case anything goes wrong
writing output to the http
servlet response.
java.sql.SQLException
- in case anything goes wrong
with the database.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |