public class OOXMLWriter extends OOXMLAdapter implements OOXMLConstants
DEBUGborderStyle, builtInNames, cellFormulaType, cellType, chartDir, chartns, contentTypes, drawingDir, drawingmlns, drawingns, fontFamily, fontScheme, horizontalAlignment, legendPos, mediaDir, patternFill, pkgrelns, relns, relsContentTypes, systemColors, themeDir, threeDchartTypes, twoDchartTypes, typens, verticalAlignment, xmlHeader, xmlns| Constructor and Description |
|---|
OOXMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
getOOXML(WorkBookHandle bk,
OutputStream out)
generates OOXML for a workbook (see specification above)
Creates the ZIP file and writes all files into proper directory structure re: OPC
|
void |
getOOXML(WorkBookHandle bk,
String path)
generates OOXML for a workbook
Creates the ZIP file and writes all files into proper directory structure
Will create either an .xlsx or an .xlsm output, depending upon
whether WorkBookHandle bk contains macros
|
protected void |
writeContentType()
writes all package contents to [Content_Types].xml
Package contents are contained in global array lists
mainContentList, wbContentList, sheetsContentList, drContentList
|
protected void |
writeDeferredFiles()
write the deferred files to the zipfile
|
protected void |
writeMergedCellRecords(WorkSheetHandle sheet)
Write the merged cell records for a worksheet
|
protected void |
writeOOXML(WorkBookHandle bk)
Calls all the necessary methods to create style OOXML, workbook OOXML, sheet(s) OOXML ...
|
protected void |
writeRels(ArrayList cl,
String relsfname)
generic method for creating a .rels file from a content list array cl
|
void |
writeRow(RowHandle row,
ArrayList hyperlinks)
Writes a row and all contents to the zip output
|
protected void |
writeSheetOOXML(WorkBookHandle bk,
WorkSheetHandle sheet,
int id)
writeSheetOOXML writes XML data in SheetML specificaiton to [worksheet].xml
Main portion is the
|
protected void |
writeSheetPrefix(WorkSheetHandle sheet,
WorkBookHandle bk,
int id)
Handles preliminary writing of worksheets, essentially everything before
|
addDeferredFile, addDeferredFile, addDeferredFile, cloneStack, deleteDir, getContentType, getEntry, getExOOXMLFileName, getFilename, getFormat, getNextText, getRelationshipType, getRelationshipTypeAbbrev, getStandaloneChartDrawingOOXML, getTempDir, hasMacros, nextZipEntry, parseBoolean, parseRels, refreshPassThroughFiles, reorderWbContentList, setFormat, sortSheets, stripNonAscii, stripNonAsciiRetainQuote, wrapInputStream, writeFileToZIP, writeSBToStreamEfficientlypublic void getOOXML(WorkBookHandle bk, OutputStream out) throws IOException
workbook - out - outputStream used by ZipOutputStreamIOExceptionprotected void writeDeferredFiles()
throws IOException
IOExceptionprotected void writeRels(ArrayList cl, String relsfname) throws IOException
cl - ArrayList contentList (type, filename)relsfname - IOExceptionprotected void writeContentType()
throws IOException
IOExceptionpublic void getOOXML(WorkBookHandle bk, String path) throws Exception
bk - workbookhandlepath - output filename and pathExceptionprotected void writeOOXML(WorkBookHandle bk) throws IOException
bk - output - IOExceptiongetOOXMLprotected void writeSheetPrefix(WorkSheetHandle sheet, WorkBookHandle bk, int id) throws IOException
sheet - bk - id - IOExceptionprotected void writeSheetOOXML(WorkBookHandle bk, WorkSheetHandle sheet, int id) throws IOException
bk - sheet - IOExceptionprotected void writeMergedCellRecords(WorkSheetHandle sheet) throws IOException
IOExceptionpublic void writeRow(RowHandle row, ArrayList hyperlinks) throws IOException
hyperlinks - IOExceptionFormulaNotFoundExceptionCopyright © 2002–2019 Starter Inc.. All rights reserved.