01: /**********************************************************************************
02: *
03: * $Id: SpreadsheetDataFileWriter.java 22226 2007-03-06 17:42:53Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2007 The Regents of the University of California
08: *
09: * Licensed under the Educational Community License, Version 1.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.opensource.org/licenses/ecl1.php
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: *
21: **********************************************************************************/package org.sakaiproject.jsf.spreadsheet;
22:
23: import java.util.List;
24:
25: import javax.servlet.http.HttpServletResponse;
26:
27: /**
28: * A simple utility class for downloading generic spreadsheet-style data
29: * in a variety of formats.
30: */
31: public interface SpreadsheetDataFileWriter {
32: /**
33: * Put a file describing the spreadsheet-style data into to the HTTP servlet response.
34: *
35: * @param spreadsheetData a list of rows, beginning with a header row, each being a list
36: * of column objects
37: * @param fileName
38: * @param response
39: */
40: public void writeDataToResponse(List<List<Object>> spreadsheetData,
41: String fileName, HttpServletResponse response);
42: }
|