Package org.reflections.serializers
Class XmlSerializer
- java.lang.Object
-
- org.reflections.serializers.XmlSerializer
-
- All Implemented Interfaces:
Serializer
public class XmlSerializer extends java.lang.Object implements Serializer
xml serialization forReflections
an example of produced xml:reflections.save(file, new XmlSerializer())
<Reflections> <SubTypes> <entry> <key>org.reflections.TestModel$C1</key> <values> <value>org.reflections.TestModel$C2</value> <value>org.reflections.TestModel$C3</value> </values> </entry> </SubTypes> <TypesAnnotated> <entry> <key>org.reflections.TestModel$AC2</key> <values> <value>org.reflections.TestModel$C2</value> <value>org.reflections.TestModel$C3</value> </values> </entry> </TypesAnnotated> </Reflections>
-
-
Constructor Summary
Constructors Constructor Description XmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.dom4j.Document
createDocument(Store store)
Reflections
read(java.io.InputStream inputStream)
reads the input stream into a new Reflections instance, populating it's storejava.io.File
save(Reflections reflections, java.lang.String filename)
saves a Reflections instance into the given filename
-
-
-
Method Detail
-
read
public Reflections read(java.io.InputStream inputStream)
Description copied from interface:Serializer
reads the input stream into a new Reflections instance, populating it's store- Specified by:
read
in interfaceSerializer
-
save
public java.io.File save(Reflections reflections, java.lang.String filename)
Description copied from interface:Serializer
saves a Reflections instance into the given filename- Specified by:
save
in interfaceSerializer
-
createDocument
private org.dom4j.Document createDocument(Store store)
-
-