ezvcard.io
Interface IParser

All Known Implementing Classes:
HCardReader, VCardReader, XCardReader

public interface IParser

Common methods that all vCard reader classes must have.

Author:
Michael Angstadt

Method Summary
 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 unregisterExtendedType(Class<? extends VCardType> clazz)
          Removes an extended type class that was previously registered.
 

Method Detail

registerExtendedType

void registerExtendedType(Class<? extends VCardType> clazz)
Registers an extended type class.

Parameters:
clazz - the extended type class to register (MUST have a public, no-arg constructor)

unregisterExtendedType

void unregisterExtendedType(Class<? extends VCardType> clazz)
Removes an extended type class that was previously registered.

Parameters:
clazz - the extended type class to remove (MUST have a public, no-arg constructor)

getWarnings

List<String> getWarnings()
Gets the warnings from the last vCard that was unmarshalled. This list is reset every time a new vCard is read.

Returns:
the warnings or empty list if there were no warnings

readNext

VCard readNext()
               throws IOException
Reads the next vCard.

Returns:
the next vCard or null if there are no more
Throws:
IOException - if there's a problem reading from the stream


Copyright © 2012-2013. All Rights Reserved.