|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.contact.io.vcard.vCardUnmarshaller
Class implementing a ContactUnmarshaller for the vCard Mime Directory format specification (see RFC 2426).
Constructor Summary | |
vCardUnmarshaller()
|
|
vCardUnmarshaller(java.lang.String enc)
|
Method Summary | |
java.lang.String |
getEncoding()
|
boolean |
isStrict()
Tests if this ContactUnmarshaller flag for strict mode is set. |
static void |
main(java.lang.String[] args)
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding used by this ContactUnmarshaller. |
void |
setStrict(boolean b)
Sets the strict flag for the unmarshalling mechanism. |
Contact |
unmarshallContact(java.io.InputStream in)
Unmarshalls a contact from the given InpuStream. |
Contact[] |
unmarshallContacts(java.io.InputStream in)
Unmarshalls a group of contacts from the given InputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public vCardUnmarshaller()
public vCardUnmarshaller(java.lang.String enc)
Method Detail |
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
ContactUnmarshaller
setEncoding
in interface ContactUnmarshaller
encoding
- the encoding as String.public Contact unmarshallContact(java.io.InputStream in)
ContactUnmarshaller
unmarshallContact
in interface ContactUnmarshaller
in
- the InputStream to read from.public Contact[] unmarshallContacts(java.io.InputStream in)
ContactUnmarshaller
unmarshallContacts
in interface ContactUnmarshaller
in
- the InputStream to read from.public void setStrict(boolean b)
ContactUnmarshaller
If this flag is set, then the unmarshalling should fail for input data that does not comply to the specfication. If it is not set, then the implementation should make efforts to recover at least all parts that comply to the standard.
Note that the default setting for this flag is supposed to be true.
setStrict
in interface ContactUnmarshaller
b
- true for setting the flag, false otherwise.public boolean isStrict()
ContactUnmarshaller
isStrict
in interface ContactUnmarshaller
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |