|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.io.XCardReader
public class XCardReader
Unmarshals XML-encoded vCards into VCard
objects.
Nested Class Summary | |
---|---|
static class |
XCardReader.XCardNamespaceContext
Namespace context to use for xCard XPath expressions. |
Field Summary | |
---|---|
static XCardReader.XCardNamespaceContext |
nsContext
|
Constructor Summary | |
---|---|
XCardReader(Document document)
|
|
XCardReader(File file)
|
|
XCardReader(InputStream in)
|
|
XCardReader(Reader reader)
|
|
XCardReader(String xml)
|
Method Summary | |
---|---|
CompatibilityMode |
getCompatibilityMode()
Deprecated. |
List<String> |
getWarnings()
Gets the warnings from the last vCard that was unmarshalled. |
VCard |
readNext()
Reads the next vCard. |
void |
registerExtendedType(Class<? extends VCardType> clazz)
Registers an extended type class. |
void |
setCompatibilityMode(CompatibilityMode compatibilityMode)
Deprecated. |
void |
unregisterExtendedType(Class<? extends VCardType> clazz)
Removes an extended type class that was previously registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XCardReader.XCardNamespaceContext nsContext
Constructor Detail |
---|
public XCardReader(String xml) throws SAXException
xml
- the XML string to read the vCards from
SAXException
- if there's a problem parsing the XMLpublic XCardReader(InputStream in) throws SAXException, IOException
in
- the input stream to read the vCards from
IOException
- if there's a problem reading from the input stream
SAXException
- if there's a problem parsing the XMLpublic XCardReader(File file) throws SAXException, IOException
file
- the file to read the vCards from
IOException
- if there's a problem reading from the file
SAXException
- if there's a problem parsing the XMLpublic XCardReader(Reader reader) throws SAXException, IOException
reader
- the reader to read the vCards from
IOException
- if there's a problem reading from the reader
SAXException
- if there's a problem parsing the XMLpublic XCardReader(Document document)
document
- the XML document to read the vCards fromMethod Detail |
---|
@Deprecated public CompatibilityMode getCompatibilityMode()
@Deprecated public void setCompatibilityMode(CompatibilityMode compatibilityMode)
compatibilityMode
- the compatibility modepublic void registerExtendedType(Class<? extends VCardType> clazz)
IParser
registerExtendedType
in interface IParser
clazz
- the extended type class to register (MUST have a public,
no-arg constructor)public void unregisterExtendedType(Class<? extends VCardType> clazz)
IParser
unregisterExtendedType
in interface IParser
clazz
- the extended type class to remove (MUST have a public,
no-arg constructor)public List<String> getWarnings()
IParser
getWarnings
in interface IParser
public VCard readNext()
IParser
readNext
in interface IParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |