|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.DocumentHandle
public class DocumentHandle
This is the Abstract document class which represents an atomic Document file or object.
| Constructor Summary | |
|---|---|
DocumentHandle()
default empty constructor |
|
DocumentHandle(File input)
May 19, 2010 |
|
DocumentHandle(String file)
defualt constructor takes a .doc file |
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
Object val)
Sets the value of a property in the workbook property store. |
void |
close()
Closes the WorkBook and releases resources. |
void |
finalize()
Closes the WorkBook and releases resources. |
byte[] |
getBytes()
Deprecated. |
com.extentech.formats.DOC.DocumentFactory |
getFactory()
returns a low-level DocumentFactory NOTE: The WorkBook class is NOT a part of the published API. |
String |
getName()
Returns the name of this WorkBook |
Map |
getProperties()
Retrieves a Map containing the workbook properties store. |
Object |
getProperty(String name)
Retrieves the a property in the workbook property store. |
static String |
getVersion()
Return the version of ExtenXLS |
String |
getWorkingDirectory()
Returns the directory containing the ExtenXLS.jar and extenxls.lic files. |
void |
reset()
Resets the values of this WorkBookHandle to defaults. |
void |
setDebugLevel(int l)
Set the Debugging level. |
void |
setName(String nm)
Sets the internal name of this WorkBookHandle. |
void |
setProperties(Map properties)
Replaces the workbook properties store with the given Map. |
String |
toString()
Returns the name of this Sheet. |
void |
write(OutputStream out)
Saves the WorkBookHandle to this opened OutputStream If original file is Excel2007 Format, the template will be written in Excel 2007 (XLSX) Format. |
void |
write(String fname)
Saves this WorkBookHandle to filename and path fname if the filename ends with ".xlsx" or ".xlsm", the template will be written in Excel 2007 (XLSX) Format. |
void |
write(String fname,
boolean Excel2007Format)
saves this WorkBookHandle to filename and path fname if Excel2007 Format, the template will be written in Excel 2007 (XLSX) Format. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentHandle()
public DocumentHandle(String file)
file - public DocumentHandle(File input)
input - | Method Detail |
|---|
public Object getProperty(String name)
name - the name of the property to retrieve
public void addProperty(String name,
Object val)
name - the name of the property which should be updatedvalue - the value to which the property should be setpublic Map getProperties()
public void setProperties(Map properties)
properties - a Map which will be used as the properties storepublic void close()
Object.finalize()public void finalize()
finalize in class ObjectObject.finalize()public static String getVersion()
public void setName(String nm)
WorkBook - Namepublic void setDebugLevel(int l)
public byte[] getBytes()
WorkBook.getBytes()public void write(String fname)
fname -
public void write(String fname,
boolean Excel2007Format)
fname - Excel2007Format - public void write(OutputStream out)
out - public String getWorkingDirectory()
public String getName()
public com.extentech.formats.DOC.DocumentFactory getFactory()
public void reset()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||