Package io.keikai.model.impl.html
Class ToHtml
- java.lang.Object
-
- io.keikai.model.impl.html.ToHtml
-
- All Implemented Interfaces:
Serializable
public class ToHtml extends Object implements Serializable
This example shows how to display a spreadsheet in HTML using the classes for spreadsheet display.- Author:
- Ken Arnold, Industrious Media LLC
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ToHtml
create(SBook wb, OutputStream output)
Creates a new converter to HTML for the given workbook.static ToHtml
create(SSheet ws, OutputStream output)
static void
export(SBook wb, OutputStream outputStream)
static void
export(SBook wb, OutputStream outputStream, boolean noHeader)
static void
export(SSheet ws, CellRegion area, OutputStream outputStream)
static void
export(SSheet ws, CellRegion area, OutputStream outputStream, boolean noHeader)
static void
export(SSheet ws, OutputStream outputStream)
static void
export(SSheet ws, OutputStream outputStream, boolean noHeader)
static void
main(String[] args)
Run this class as a programvoid
print()
void
printPage()
void
printSheet(SSheet sheet)
void
printStyles()
void
setCompleteHTML(boolean completeHTML)
-
-
-
Method Detail
-
create
public static ToHtml create(SBook wb, OutputStream output)
Creates a new converter to HTML for the given workbook.- Parameters:
wb
- The workbook.output
- Where the HTML output will be written.- Returns:
- An object for converting the workbook to HTML.
-
create
public static ToHtml create(SSheet ws, OutputStream output)
-
main
public static void main(String[] args) throws Exception
Run this class as a program- Parameters:
args
- The command line arguments.- Throws:
Exception
- Exception we don't recover from.
-
export
public static void export(SBook wb, OutputStream outputStream, boolean noHeader) throws IOException
- Throws:
IOException
-
export
public static void export(SSheet ws, OutputStream outputStream, boolean noHeader) throws IOException
- Throws:
IOException
-
export
public static void export(SSheet ws, CellRegion area, OutputStream outputStream, boolean noHeader) throws IOException
- Throws:
IOException
-
export
public static void export(SBook wb, OutputStream outputStream) throws IOException
- Throws:
IOException
-
export
public static void export(SSheet ws, OutputStream outputStream) throws IOException
- Throws:
IOException
-
export
public static void export(SSheet ws, CellRegion area, OutputStream outputStream) throws IOException
- Throws:
IOException
-
setCompleteHTML
public void setCompleteHTML(boolean completeHTML)
-
printPage
public void printPage() throws IOException
- Throws:
IOException
-
print
public void print()
-
printStyles
public void printStyles()
-
printSheet
public void printSheet(SSheet sheet)
-
-