Package org.reflections.serializers
Class XmlSerializer
- java.lang.Object
-
- org.reflections.serializers.XmlSerializer
-
- All Implemented Interfaces:
Serializer
public class XmlSerializer extends Object implements Serializer
serialization of Reflections to xmlan example of produced xml:
<?xml version="1.0" encoding="UTF-8"?> <Reflections> <SubTypesScanner> <entry> <key>com.google.inject.Module</key> <values> <value>fully.qualified.name.1</value> <value>fully.qualified.name.2</value> ...
-
-
Constructor Summary
Constructors Constructor Description XmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reflections
read(InputStream inputStream)
reads the input stream into a new Reflections instance, populating it's storeFile
save(Reflections reflections, String filename)
saves a Reflections instance into the given filenameString
toString(Reflections reflections)
returns a string serialization of the given Reflections instance
-
-
-
Method Detail
-
read
public Reflections read(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 File save(Reflections reflections, String filename)
Description copied from interface:Serializer
saves a Reflections instance into the given filename- Specified by:
save
in interfaceSerializer
-
toString
public String toString(Reflections reflections)
Description copied from interface:Serializer
returns a string serialization of the given Reflections instance- Specified by:
toString
in interfaceSerializer
-
-