Browse Source

Polish Javadoc for abstract XLSX views

pull/566/merge
Sam Brannen 11 years ago
parent
commit
72ec5792cf
  1. 8
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractXlsxStreamingView.java
  2. 8
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractXlsxView.java

8
spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractXlsxStreamingView.java

@ -28,8 +28,8 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook;
* Convenient superclass for Excel document views in the Office 2007 XLSX format, * Convenient superclass for Excel document views in the Office 2007 XLSX format,
* using POI's streaming variant. Compatible with Apache POI 3.9 and higher. * using POI's streaming variant. Compatible with Apache POI 3.9 and higher.
* *
* <p>For working with the workbook in the subclass, see * <p>For working with the workbook in subclasses, see
* <a href="http://poi.apache.org">Apache's POI site</a> * <a href="http://poi.apache.org">Apache's POI site</a>.
* *
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 4.2 * @since 4.2
@ -45,14 +45,14 @@ public abstract class AbstractXlsxStreamingView extends AbstractXlsxView {
} }
/** /**
* This implementation disposes the {@link SXSSFWorkbook} when done with rendering. * This implementation disposes of the {@link SXSSFWorkbook} when done with rendering.
* @see org.apache.poi.xssf.streaming.SXSSFWorkbook#dispose() * @see org.apache.poi.xssf.streaming.SXSSFWorkbook#dispose()
*/ */
@Override @Override
protected void renderWorkbook(Workbook workbook, HttpServletResponse response) throws IOException { protected void renderWorkbook(Workbook workbook, HttpServletResponse response) throws IOException {
super.renderWorkbook(workbook, response); super.renderWorkbook(workbook, response);
// Dispose temporary files in case of streaming variant... // Dispose of temporary files in case of streaming variant...
((SXSSFWorkbook) workbook).dispose(); ((SXSSFWorkbook) workbook).dispose();
} }

8
spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractXlsxView.java

@ -26,8 +26,8 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
* Convenient superclass for Excel document views in the Office 2007 XLSX format * Convenient superclass for Excel document views in the Office 2007 XLSX format
* (as supported by POI-OOXML). Compatible with Apache POI 3.5 and higher. * (as supported by POI-OOXML). Compatible with Apache POI 3.5 and higher.
* *
* <p>For working with the workbook in the subclass, see * <p>For working with the workbook in subclasses, see
* <a href="http://poi.apache.org">Apache's POI site</a> * <a href="http://poi.apache.org">Apache's POI site</a>.
* *
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 4.2 * @since 4.2
@ -36,8 +36,8 @@ public abstract class AbstractXlsxView extends AbstractXlsView {
/** /**
* Default Constructor. * Default Constructor.
* Sets the content type of the view to * <p>Sets the content type of the view to
* "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet". * {@code "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}.
*/ */
public AbstractXlsxView() { public AbstractXlsxView() {
setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");

Loading…
Cancel
Save