|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.converter.xml.sxc.pexcel.PxlDocument
Constructor Summary | |
PxlDocument(java.lang.String name)
Constructs a pocket Excel Document with the name of the file passed in as an argument. |
|
PxlDocument(java.lang.String name,
java.io.InputStream is)
Constructs a pocket Excel Document from the InputStream and assigns it the document name passed in |
Method Summary | |
void |
addCell(int row,
int column,
Format fmt,
java.lang.String cellContents)
Adds a cell to the current worksheet |
void |
addColInfo(IntArrayList columnWidths)
Take an IntArrayList and generate a number of ColInfo
Records. |
int |
addExtendedFormat(int ixfnt)
Adds an ExtendedFormat record which contains a specified font index |
int |
addFontDescriptor(FontDescription fd)
Add the specified FontDescripton to the header |
void |
addWorksheet(java.lang.String name)
Returns the Document name with file extension. |
java.lang.String |
getFileName()
Returns the filename of the pxl document with the file extension |
java.lang.String |
getName()
Return the filename of the pxl document without the file extension |
java.util.LinkedList |
getWorksheet(int index)
Returns the the worksheet at the specified position |
java.util.Vector |
getWorksheetNames()
Returns a Vector containing all the worksheet Names |
void |
read(java.io.InputStream is)
Read a Pocket Excel Document from the Inputstream and add
the relevant records to the Linked Lists for the worksheets
OuputStream |
void |
write(java.io.OutputStream os)
Writes the records contained in the header and worksheets to the OuputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PxlDocument(java.lang.String name)
name
- Name of the Pocket Excel Data file. (excluding the file
extension)public PxlDocument(java.lang.String name, java.io.InputStream is) throws java.io.IOException
InputStream
and assigns it the document name passed inis
- InputStream containing a Pocket Excel Data file.Method Detail |
public void addCell(int row, int column, Format fmt, java.lang.String cellContents) throws java.io.IOException
row
- the row number of the cellcol
- the Column number of the cellfmt
- the Format
of the cellcellContents
- the cell contentspublic void addColInfo(IntArrayList columnWidths)
IntArrayList
and generate a number of ColInfo
Records. Consecutive columns of the same width can use the same
ColInfo
columnWidths
- an IntArrayList
describing column
widthspublic int addExtendedFormat(int ixfnt)
ixfnt
- font index the new ExtendedRecord should containpublic int addFontDescriptor(FontDescription fd)
fd
- the FontDescription that is to be added to the headerpublic void addWorksheet(java.lang.String name) throws java.io.IOException
Document
name with file extension.Document
name with file extension.public java.lang.String getFileName()
getFileName
in interface Document
public java.lang.String getName()
getName
in interface Document
public java.util.LinkedList getWorksheet(int index)
index
- the index of the worksheet to returnLinkedList
containing the worksheetpublic java.util.Vector getWorksheetNames()
Vector
containing all the worksheet NamesVector
containing all the worksheet Namespublic void read(java.io.InputStream is) throws java.io.IOException
Inputstream
and add
the relevant records to the Linked Lists for the worksheets
OuputStream
read
in interface Document
is
- The Inputstream
containing the pxl documentpublic void write(java.io.OutputStream os) throws java.io.IOException
OuputStream
write
in interface Document
os
- The Outputstream to write to
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |