|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.gedcom.GedcomParser
public class GedcomParser
GedcomParser
This class is designed to look like a SAX2-compliant XML parser; however, it takes GEDCOM as its input rather than XML. The events sent to the ContentHandler reflect the GEDCOM input "as is"; there is no validation or conversion of tags.
| Constructor Summary | |
|---|---|
GedcomParser()
|
|
| Method Summary | |
|---|---|
int |
getColumnNumber()
Get the column number: always -1 |
org.xml.sax.ContentHandler |
getContentHandler()
Get the ContentHandler |
org.xml.sax.DTDHandler |
getDTDHandler()
Get the DTDHandler |
org.xml.sax.EntityResolver |
getEntityResolver()
Get the entityResolver |
org.xml.sax.ErrorHandler |
getErrorHandler()
Get the error handler |
boolean |
getFeature(java.lang.String s)
Get a feature |
int |
getLineNumber()
Get the line number |
java.lang.Object |
getProperty(java.lang.String s)
Get a property |
java.lang.String |
getPublicId()
Get the publicId: always null |
java.lang.String |
getSystemId()
Get the system ID |
void |
parse(org.xml.sax.InputSource source)
Parse input from the supplied InputSource |
void |
parse(java.lang.String systemId)
Parse input from the supplied systemId |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Set the ContentHandler |
void |
setDTDHandler(org.xml.sax.DTDHandler dh)
Set the DTDHandler This call has no effect, because DTDs are not used in GEDCOM files. |
void |
setEntityResolver(org.xml.sax.EntityResolver er)
Set the entityResolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler eh)
Set the error handler |
void |
setFeature(java.lang.String s,
boolean b)
Set a feature |
void |
setLocale(java.util.Locale locale)
Set the locale. |
void |
setProperty(java.lang.String s,
java.lang.Object b)
Set a property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GedcomParser()
| Method Detail |
|---|
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler in interface org.xml.sax.XMLReaderhandler - User-supplied content handlerpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderpublic void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic void setDTDHandler(org.xml.sax.DTDHandler dh)
setDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler in interface org.xml.sax.XMLReadereh - A user-supplied error handlerpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderpublic void setLocale(java.util.Locale locale)
public void parse(java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXException
java.io.IOException
public void parse(org.xml.sax.InputSource source)
throws org.xml.sax.SAXException,
java.io.IOException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXException
java.io.IOException
public void setFeature(java.lang.String s,
boolean b)
throws org.xml.sax.SAXNotRecognizedException
setFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
public boolean getFeature(java.lang.String s)
throws org.xml.sax.SAXNotRecognizedException
getFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
public void setProperty(java.lang.String s,
java.lang.Object b)
throws org.xml.sax.SAXNotRecognizedException
setProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
public java.lang.Object getProperty(java.lang.String s)
throws org.xml.sax.SAXNotRecognizedException
getProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionpublic java.lang.String getPublicId()
getPublicId in interface org.xml.sax.Locatorpublic java.lang.String getSystemId()
getSystemId in interface org.xml.sax.Locatorpublic int getLineNumber()
getLineNumber in interface org.xml.sax.Locatorpublic int getColumnNumber()
getColumnNumber in interface org.xml.sax.Locator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||