com.ldodds.foafamatic.load
Class VCardLoader

java.lang.Object
  |
  +--com.ldodds.foafamatic.load.FileLoader
        |
        +--com.ldodds.foafamatic.load.VCardLoader
All Implemented Interfaces:
Loader

public class VCardLoader
extends FileLoader

Loads a friend from a vCard file, e.g. as exported from Outlook, Windows address book, etc. TODO should use more VCard methods than is currently supported

Author:
ldodds

Constructor Summary
VCardLoader(boolean asFriend)
           
 
Method Summary
 void loadData(java.io.InputStream in)
          Should be implemented by sub-classes to actually perform the data load.
 
Methods inherited from class com.ldodds.foafamatic.load.FileLoader
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardLoader

public VCardLoader(boolean asFriend)
Method Detail

loadData

public void loadData(java.io.InputStream in)
Description copied from class: FileLoader
Should be implemented by sub-classes to actually perform the data load. An InputStream will automatically be created from the users choice (whether the file system or URL) and passed as a parameter to this method

Specified by:
loadData in class FileLoader
Parameters:
in - An InputStream from which the data can be read. Guaranteed not to be null. The stream will be closed by the base class.
See Also:
FileLoader.loadData(InputStream)