|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ar.com.epere4.java2excel.parser.Java2ExcelDtdFactory
public final class Java2ExcelDtdFactory
This class allows the construction of several kinds of
Java2ExcelDtd
.
Field Summary | |
---|---|
static Java2ExcelDtdFactory |
INSTANCE
Singleton. |
Method Summary | |
---|---|
Java2ExcelDtd |
defaultJava2ExcelDtd()
|
Java2ExcelDtd |
defaultJava2ExcelDtd(int includeExtraLevel)
Default typesToExcludeInAutoComplete are those in BodyDtdImpl.DEFAULT_TYPES_TO_EXCLUDE_IN_AUTO_COMPLETE . |
Java2ExcelDtd |
defaultJava2ExcelDtd(int includeExtraLevel,
java.lang.Class[] typesToExcludeInAutoComplete)
Similar to calling defaultJava2ExcelDtd(includeExtraLevel,
typesToExcludeInAutoComplete, false) . |
Java2ExcelDtd |
defaultJava2ExcelDtd(int includeExtraLevel,
java.lang.Class[] typesToExcludeInAutoComplete,
boolean ignoreDefaultsExcludes)
|
static Java2ExcelDtdFactory |
getInstance()
|
Java2ExcelDtd |
readFromFile(java.io.InputStream xmlInput)
This returns a Java2ExcelDtd implementation that will be
configured with the xml received as input. |
Java2ExcelDtd |
readFromFile(java.io.InputStream xmlInput,
java.lang.Class[] typesToExcludeInAutoComplete)
Similar to calling readFromFile(xmlInput, typesToExcludeInAutoComplete, false) . |
Java2ExcelDtd |
readFromFile(java.io.InputStream xmlInput,
java.lang.Class[] typesToExcludeInAutoComplete,
boolean ignoreDefaultsExcludes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Java2ExcelDtdFactory INSTANCE
Method Detail |
---|
public static Java2ExcelDtdFactory getInstance()
public Java2ExcelDtd readFromFile(java.io.InputStream xmlInput) throws java.io.IOException, org.xml.sax.SAXException
Java2ExcelDtd
implementation that will be
configured with the xml received as input. This xml must be valid to the
Parser.JAVA2EXCEL_LOCAL_DTD_URL
.
xmlInput
- the xml file.
Java2ExcelDtd
.
java.io.IOException
- if an Input/Output exception occurs.
org.xml.sax.SAXException
- if a parsing exception occurs.public Java2ExcelDtd readFromFile(java.io.InputStream xmlInput, java.lang.Class[] typesToExcludeInAutoComplete) throws java.io.IOException, org.xml.sax.SAXException
readFromFile(xmlInput, typesToExcludeInAutoComplete, false)
.
xmlInput
- see readFromFile(InputStream, Class[], boolean)
typesToExcludeInAutoComplete
- see readFromFile(InputStream, Class[], boolean)
readFromFile(InputStream, Class[], boolean)
java.io.IOException
- see readFromFile(InputStream, Class[], boolean)
org.xml.sax.SAXException
- see readFromFile(InputStream, Class[], boolean)
public Java2ExcelDtd readFromFile(java.io.InputStream xmlInput, java.lang.Class[] typesToExcludeInAutoComplete, boolean ignoreDefaultsExcludes) throws java.io.IOException, org.xml.sax.SAXException
xmlInput
- the xml file.typesToExcludeInAutoComplete
- the array of types to be excluded
when searching for getters by reflection. No property that returns an
instance of any of the types in this array will be printed in the
excel file.ignoreDefaultsExcludes
- if true, then the values of the
typesToExcludeInAutoComplete parameter will overwrite the default ones.
Java2ExcelDtd
.
java.io.IOException
- if an Input/Output exception occurs.
org.xml.sax.SAXException
- if a parsing exception occurs.public Java2ExcelDtd defaultJava2ExcelDtd()
Java2ExcelDtd
with no
properties asociated.public Java2ExcelDtd defaultJava2ExcelDtd(int includeExtraLevel)
BodyDtdImpl.DEFAULT_TYPES_TO_EXCLUDE_IN_AUTO_COMPLETE
.
includeExtraLevel
- the number of levels in which to
search for properties by reflexion.
defaultJava2ExcelDtd()
, but setting
the BodyDtd#setIncludeExtraLevel(int)
.public Java2ExcelDtd defaultJava2ExcelDtd(int includeExtraLevel, java.lang.Class[] typesToExcludeInAutoComplete)
defaultJava2ExcelDtd(includeExtraLevel,
typesToExcludeInAutoComplete, false)
.
includeExtraLevel
- see defaultJava2ExcelDtd(int, Class[], boolean)
typesToExcludeInAutoComplete
- see defaultJava2ExcelDtd(int, Class[], boolean)
defaultJava2ExcelDtd(int, Class[], boolean)
defaultJava2ExcelDtd(int, Class[], boolean)
public Java2ExcelDtd defaultJava2ExcelDtd(int includeExtraLevel, java.lang.Class[] typesToExcludeInAutoComplete, boolean ignoreDefaultsExcludes)
includeExtraLevel
- the number of levels in which to
search for properties by reflexion.typesToExcludeInAutoComplete
- the array of types to be excluded
when searching for getters by reflection. No property that returns an
instance of any of the types in this array will be printed in the
excel file.ignoreDefaultsExcludes
- if true, then the values of the
typesToExcludeInAutoComplete parameter will overwrite the default ones.
defaultJava2ExcelDtd(int)
, but setting
the types to exclude in auto complete.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |