de.jface.remind.io
Class XMLSerializer

java.lang.Object
  |
  +--de.jface.remind.io.Serializer
        |
        +--de.jface.remind.io.XMLSerializer

public class XMLSerializer
extends Serializer

Class XMLSerializer of project RemotePostIt.

Version:
$Revision: 1.1.1.1 $
Author:
Moritz Petersen

Constructor Summary
XMLSerializer()
           
 
Method Summary
 java.util.Collection deserialize(java.io.InputStream in)
          Decodes the data, read from the InputStream into a Collection.
 java.io.InputStream serialize(java.util.Collection notes)
          Returns a Stream, containing the serialized notes.
 
Methods inherited from class de.jface.remind.io.Serializer
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSerializer

public XMLSerializer()
Method Detail

deserialize

public java.util.Collection deserialize(java.io.InputStream in)
                                 throws SerializerException
Decodes the data, read from the InputStream into a Collection. The created Collection only contains elements of type Note.
Overrides:
deserialize in class Serializer
Parameters:
in - the InputStream that is decoded into the Collection of Note objects.
Returns:
a Collection containing only Note objects.

serialize

public java.io.InputStream serialize(java.util.Collection notes)
                              throws SerializerException
Returns a Stream, containing the serialized notes. The stream is an InputStream, from which the serialized notes can be read.
Overrides:
serialize in class Serializer
Parameters:
notes - A Collection. Only Note objects are considered in writing to the InputStream.
Returns:
an InputStream from which the serialized notes can be read.


Copyright © 2002-2002 Moritz Petersen. All Rights Reserved.