|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVCard
This interface defines some IO methods to export and import an internet-cafe User instance to/in a JCard (vCard format).
Method Summary | |
---|---|
JCard |
newJCard(User user)
This method has to be implemented in order to create a new JCard instance given a valid and alredy instanced internet-cafe user. |
User |
newUser(JCard jcard)
This method has to be implemented in order to create a new internet-cafe User instance given a valid and alredy instanced JCard. |
void |
read(java.io.Reader reader)
This method should be imlemented in order to import and create a new vCard instance from a vCard file. |
void |
write(java.io.Writer writer)
This method should be imlemented in order to export a vCard instace to a file. |
Method Detail |
---|
void read(java.io.Reader reader) throws JCardException
reader
- The reader associated to the file to be loaded as a vCard.
JCardException
void write(java.io.Writer writer) throws JCardException
writer
- The writer associated to the file where the vCard must be saved.
JCardException
User newUser(JCard jcard)
jcard
- The JCard from wich the user must be instantiated.
JCard newJCard(User user)
user
- The internet-cafe User instance whose parameters must be exported as a JCard.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |