|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.Ezvcard
public class Ezvcard
Contains helper methods for parsing/writing vCards. The methods wrap the following classes:
Reading | Writing | |
---|---|---|
Plain text | VCardReader |
VCardWriter |
XML | XCardReader |
XCardDocument |
HTML | HCardReader |
HCardPage |
Nested Class Summary | |
---|---|
static class |
Ezvcard.ParserChainHtmlReader
Convenience chainer class for parsing HTML vCards. |
static class |
Ezvcard.ParserChainHtmlString
Convenience chainer class for parsing HTML vCards. |
static class |
Ezvcard.ParserChainTextReader
Convenience chainer class for parsing plain text vCards. |
static class |
Ezvcard.ParserChainTextString
Convenience chainer class for parsing plain text vCards. |
static class |
Ezvcard.ParserChainXmlDom
Convenience chainer class for parsing XML vCards. |
static class |
Ezvcard.ParserChainXmlReader
Convenience chainer class for parsing XML vCards. |
static class |
Ezvcard.ParserChainXmlString
Convenience chainer class for parsing XML vCards. |
static class |
Ezvcard.WriterChainHtml
Convenience chainer class for writing HTML vCards (hCard). |
static class |
Ezvcard.WriterChainTextMulti
Convenience chainer class for writing plain text vCards |
static class |
Ezvcard.WriterChainTextSingle
Convenience chainer class for writing plain text vCards |
static class |
Ezvcard.WriterChainXmlMulti
Convenience chainer class for writing XML vCards (xCard). |
static class |
Ezvcard.WriterChainXmlSingle
Convenience chainer class for writing XML vCards (xCard). |
Field Summary | |
---|---|
static String |
URL
The project webpage. |
static String |
VERSION
The version of the library. |
Method Summary | |
---|---|
static Ezvcard.ParserChainTextReader |
parse(File file)
Parses plain text vCards. |
static Ezvcard.ParserChainTextReader |
parse(InputStream in)
Parses plain text vCards. |
static Ezvcard.ParserChainTextReader |
parse(Reader reader)
Parses plain text vCards. |
static Ezvcard.ParserChainTextString |
parse(String str)
Parses plain text vCards. |
static Ezvcard.ParserChainHtmlReader |
parseHtml(File file)
Parses HTML-encoded vCards (hCard). |
static Ezvcard.ParserChainHtmlReader |
parseHtml(InputStream in)
Parses HTML-encoded vCards (hCard). |
static Ezvcard.ParserChainHtmlReader |
parseHtml(Reader reader)
Parses HTML-encoded vCards (hCard). |
static Ezvcard.ParserChainHtmlString |
parseHtml(String html)
Parses HTML-encoded vCards (hCard). |
static Ezvcard.ParserChainHtmlReader |
parseHtml(URL url)
Parses HTML-encoded vCards (hCard). |
static Ezvcard.ParserChainXmlDom |
parseXml(Document document)
Parses XML-encoded vCards (xCard). |
static Ezvcard.ParserChainXmlReader |
parseXml(File file)
Parses XML-encoded vCards (xCard). |
static Ezvcard.ParserChainXmlReader |
parseXml(InputStream in)
Parses XML-encoded vCards (xCard). |
static Ezvcard.ParserChainXmlReader |
parseXml(Reader reader)
Parses XML-encoded vCards (xCard). |
static Ezvcard.ParserChainXmlString |
parseXml(String xml)
Parses XML-encoded vCards (xCard). |
static Ezvcard.WriterChainTextMulti |
write(Collection<VCard> vcards)
Marshals multiple vCards to their traditional, plain-text representation. |
static Ezvcard.WriterChainTextMulti |
write(VCard... vcards)
Marshals multiple vCards to their traditional, plain-text representation. |
static Ezvcard.WriterChainTextSingle |
write(VCard vcard)
Marshals a vCard to its traditional, plain-text representation. |
static Ezvcard.WriterChainHtml |
writeHtml(Collection<VCard> vcards)
Marshals one or more vCards their HTML representation (hCard). |
static Ezvcard.WriterChainHtml |
writeHtml(VCard... vcards)
Marshals one or more vCards their HTML representation (hCard). |
static Ezvcard.WriterChainXmlMulti |
writeXml(Collection<VCard> vcards)
Marshals multiple vCards to their XML representation (xCard). |
static Ezvcard.WriterChainXmlMulti |
writeXml(VCard... vcards)
Marshals multiple vCards to their XML representation (xCard). |
static Ezvcard.WriterChainXmlSingle |
writeXml(VCard vcard)
Marshals a vCard to its XML representation (xCard). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
public static final String URL
Method Detail |
---|
public static Ezvcard.ParserChainTextString parse(String str)
Parses plain text vCards.
Use VCardReader
for more control over the parsing.
str
- the vCard string
VCardReader
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.ParserChainTextReader parse(File file) throws FileNotFoundException
Parses plain text vCards.
Use VCardReader
for more control over the parsing.
file
- the vCard file
FileNotFoundException
- if the file does not exist or cannot be
accessedVCardReader
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.ParserChainTextReader parse(InputStream in)
Parses plain text vCards.
Use VCardReader
for more control over the parsing.
in
- the input stream
VCardReader
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.ParserChainTextReader parse(Reader reader)
Parses plain text vCards.
Use VCardReader
for more control over the parsing.
reader
- the reader
VCardReader
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.ParserChainXmlString parseXml(String xml)
Parses XML-encoded vCards (xCard).
Use XCardReader
for more control over the parsing.
xml
- the XML document
XCardReader
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(File file) throws FileNotFoundException
Parses XML-encoded vCards (xCard).
Use XCardReader
for more control over the parsing.
file
- the XML file
FileNotFoundException
- if the file does not exist or cannot be
accessedXCardReader
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(InputStream in)
Parses XML-encoded vCards (xCard).
Use XCardReader
for more control over the parsing.
in
- the input stream to the XML document
XCardReader
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(Reader reader)
Parses XML-encoded vCards (xCard).
Use XCardReader
for more control over the parsing.
reader
- the reader to the XML document
XCardReader
,
RFC 6351public static Ezvcard.ParserChainXmlDom parseXml(Document document)
Parses XML-encoded vCards (xCard).
Use XCardReader
for more control over the parsing.
document
- the XML document
XCardReader
,
RFC 6351public static Ezvcard.ParserChainHtmlString parseHtml(String html)
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
html
- the HTML page
HCardReader
,
hCard 1.0public static Ezvcard.ParserChainHtmlReader parseHtml(File file) throws FileNotFoundException
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
file
- the HTML file
FileNotFoundException
- if the file does not exist or cannot be
accessedHCardReader
,
hCard 1.0public static Ezvcard.ParserChainHtmlReader parseHtml(InputStream in)
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
in
- the input stream to the HTML page
HCardReader
,
hCard 1.0public static Ezvcard.ParserChainHtmlReader parseHtml(Reader reader)
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
reader
- the reader to the HTML page
HCardReader
,
hCard 1.0public static Ezvcard.ParserChainHtmlReader parseHtml(URL url)
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
url
- the URL of the webpage
HCardReader
,
hCard 1.0public static Ezvcard.WriterChainTextSingle write(VCard vcard)
Marshals a vCard to its traditional, plain-text representation.
Use VCardWriter
for more control over how the vCard is written.
vcard
- the vCard to marshal
VCardWriter
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.WriterChainTextMulti write(VCard... vcards)
Marshals multiple vCards to their traditional, plain-text representation.
Use VCardWriter
for more control over how the vCards are written.
vcards
- the vCards to marshal
VCardWriter
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.WriterChainTextMulti write(Collection<VCard> vcards)
Marshals multiple vCards to their traditional, plain-text representation.
Use VCardWriter
for more control over how the vCards are written.
vcards
- the vCards to marshal
VCardWriter
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public static Ezvcard.WriterChainXmlSingle writeXml(VCard vcard)
Marshals a vCard to its XML representation (xCard).
Use XCardDocument
for more control over how the vCard is written.
vcard
- the vCard to marshal
XCardDocument
,
RFC 6351public static Ezvcard.WriterChainXmlMulti writeXml(VCard... vcards)
Marshals multiple vCards to their XML representation (xCard).
Use XCardDocument
for more control over how the vCards are
written.
vcards
- the vCards to marshal
XCardDocument
,
RFC 6351public static Ezvcard.WriterChainXmlMulti writeXml(Collection<VCard> vcards)
Marshals multiple vCards to their XML representation (xCard).
Use XCardDocument
for more control over how the vCards are
written.
vcards
- the vCard to marshal
XCardDocument
,
RFC 6351public static Ezvcard.WriterChainHtml writeHtml(VCard... vcards)
Marshals one or more vCards their HTML representation (hCard).
Use HCardPage
for more control over how the vCards are written.
vcards
- the vCard(s) to marshal
HCardPage
,
hCard 1.0public static Ezvcard.WriterChainHtml writeHtml(Collection<VCard> vcards)
Marshals one or more vCards their HTML representation (hCard).
Use HCardPage
for more control over how the vCards are written.
vcards
- the vCard(s) to marshal
HCardPage
,
hCard 1.0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |