|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.Ezvcard
public class Ezvcard
Contains chaining factory methods for parsing/writing vCards. They are convenience methods that make use of the following classes:
Reading | Writing | |
---|---|---|
Plain text | VCardReader |
VCardWriter |
XML | XCardDocument |
XCardDocument |
HTML | HCardReader |
HCardPage |
JSON | JCardReader |
JCardWriter |
Nested Class Summary | |
---|---|
static class |
Ezvcard.ParserChainHtmlReader
Chainer class for parsing HTML vCards. |
static class |
Ezvcard.ParserChainHtmlString
Chainer class for parsing HTML vCards. |
static class |
Ezvcard.ParserChainJsonReader
Chainer class for parsing JSON-encoded vCards (jCard). |
static class |
Ezvcard.ParserChainJsonString
Chainer class for parsing JSON-encoded vCards (jCard). |
static class |
Ezvcard.ParserChainTextReader
Chainer class for parsing plain text vCards. |
static class |
Ezvcard.ParserChainTextString
Chainer class for parsing plain text vCards. |
static class |
Ezvcard.ParserChainXmlDom
Chainer class for parsing XML vCards. |
static class |
Ezvcard.ParserChainXmlReader
Chainer class for parsing XML vCards. |
static class |
Ezvcard.ParserChainXmlString
Chainer class for parsing XML vCards. |
static class |
Ezvcard.WriterChainHtml
Chainer class for writing HTML vCards (hCard). |
static class |
Ezvcard.WriterChainJson
Chainer class for writing JSON-encoded vCards (jCard). |
static class |
Ezvcard.WriterChainText
Chainer class for writing plain text vCards |
static class |
Ezvcard.WriterChainXml
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.ParserChainJsonReader |
parseJson(File file)
Parses JSON-encoded vCards (jCard). |
static Ezvcard.ParserChainJsonReader |
parseJson(InputStream in)
Parses JSON-encoded vCards (jCard). |
static Ezvcard.ParserChainJsonReader |
parseJson(Reader reader)
Parses JSON-encoded vCards (jCard). |
static Ezvcard.ParserChainJsonString |
parseJson(String json)
Parses JSON-encoded vCards (jCard). |
static Ezvcard.ParserChainXmlDom |
parseXml(Document document)
Parses XML-encoded vCards (xCard). |
static Ezvcard.ParserChainXmlReader |
parseXml(File file)
Parses XML-encoded vCards (xCard) from a file. |
static Ezvcard.ParserChainXmlReader |
parseXml(InputStream in)
Parses XML-encoded vCards (xCard) from an input stream. |
static Ezvcard.ParserChainXmlReader |
parseXml(Reader reader)
Parses XML-encoded vCards (xCard) from a reader. |
static Ezvcard.ParserChainXmlString |
parseXml(String xml)
Parses XML-encoded vCards (xCard) from a string. |
static Ezvcard.WriterChainText |
write(Collection<VCard> vcards)
Marshals one or more vCards to their traditional, plain-text representation. |
static Ezvcard.WriterChainText |
write(VCard... vcards)
Marshals one or more vCards to their 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.WriterChainJson |
writeJson(Collection<VCard> vcards)
Marshals one or more vCards to their JSON representation (jCard). |
static Ezvcard.WriterChainJson |
writeJson(VCard... vcards)
Marshals one or more vCards to their JSON representation (jCard). |
static Ezvcard.WriterChainXml |
writeXml(Collection<VCard> vcards)
Marshals one or more vCards to their XML representation (xCard). |
static Ezvcard.WriterChainXml |
writeXml(VCard... vcards)
Marshals one or more vCards to their 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)
Parses plain text vCards.
Use VCardReader
for more control over the parsing.
file
- the vCard file
VCardReader
,
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) from a string.
Use XCardDocument
for more control over the parsing.
xml
- the XML document
XCardDocument
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(File file)
Parses XML-encoded vCards (xCard) from a file.
Use XCardDocument
for more control over the parsing.
file
- the XML file
XCardDocument
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(InputStream in)
Parses XML-encoded vCards (xCard) from an input stream.
Use XCardDocument
for more control over the parsing.
in
- the input stream to the XML document
XCardDocument
,
RFC 6351public static Ezvcard.ParserChainXmlReader parseXml(Reader reader)
Parses XML-encoded vCards (xCard) from a reader.
Note that use of this method is discouraged. It ignores the character
encoding that is defined within the XML document itself, and should only
be used if the encoding is undefined or if the encoding needs to be
ignored for whatever reason. The parseXml(InputStream)
method
should be used instead, since it takes the XML document's character
encoding into account when parsing.
Use XCardDocument
for more control over the parsing.
reader
- the reader to the XML document
XCardDocument
,
RFC 6351public static Ezvcard.ParserChainXmlDom parseXml(Document document)
Parses XML-encoded vCards (xCard).
Use XCardDocument
for more control over the parsing.
document
- the XML document
XCardDocument
,
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)
Parses HTML-encoded vCards (hCard).
Use HCardReader
for more control over the parsing.
file
- the HTML file
HCardReader
,
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.ParserChainJsonString parseJson(String json)
Parses JSON-encoded vCards (jCard).
Use JCardReader
for more control over the parsing.
json
- the JSON string
JCardReader
,
RFC 7095public static Ezvcard.ParserChainJsonReader parseJson(File file)
Parses JSON-encoded vCards (jCard).
Use JCardReader
for more control over the parsing.
file
- the JSON file
JCardReader
,
RFC 7095public static Ezvcard.ParserChainJsonReader parseJson(InputStream in)
Parses JSON-encoded vCards (jCard).
Use JCardReader
for more control over the parsing.
in
- the input stream
JCardReader
,
RFC 7095public static Ezvcard.ParserChainJsonReader parseJson(Reader reader)
Parses JSON-encoded vCards (jCard).
Use JCardReader
for more control over the parsing.
reader
- the reader
JCardReader
,
RFC 7095public static Ezvcard.WriterChainText write(VCard... vcards)
Marshals one or more 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.WriterChainText write(Collection<VCard> vcards)
Marshals one or more 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.WriterChainXml writeXml(VCard... vcards)
Marshals one or more 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.WriterChainXml writeXml(Collection<VCard> vcards)
Marshals one or more 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.0public static Ezvcard.WriterChainJson writeJson(VCard... vcards)
Marshals one or more vCards to their JSON representation (jCard).
Use JCardWriter
for more control over how the vCards are written.
vcards
- the vCards to marshal
JCardWriter
,
RFC 7095public static Ezvcard.WriterChainJson writeJson(Collection<VCard> vcards)
Marshals one or more vCards to their JSON representation (jCard).
Use JCardWriter
for more control over how the vCards are written.
vcards
- the vCards to marshal
JCardWriter
,
RFC 7095
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |