Package org.reflections.serializers
Class XmlSerializer
java.lang.Object
org.reflections.serializers.XmlSerializer
- All Implemented Interfaces:
Serializer
serialization of Reflections to xml
an example of produced xml:
invalid input: '<'?xml version="1.0" encoding="UTF-8"?> invalid input: '<'Reflections> invalid input: '<'SubTypesScanner> invalid input: '<'entry> invalid input: '<'key>com.google.inject.Moduleinvalid input: '<'/key> invalid input: '<'values> invalid input: '<'value>fully.qualified.name.1invalid input: '<'/value> invalid input: '<'value>fully.qualified.name.2invalid input: '<'/value> ...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.dom4j.Document
createDocument
(Reflections reflections) read
(InputStream inputStream) reads the input stream into a new Reflections instance, populating it's storesave
(Reflections reflections, String filename) saves a Reflections instance into the given filenametoString
(Reflections reflections) returns a string serialization of the given Reflections instance
-
Constructor Details
-
XmlSerializer
public XmlSerializer()
-
-
Method Details
-
read
Description copied from interface:Serializer
reads the input stream into a new Reflections instance, populating it's store- Specified by:
read
in interfaceSerializer
-
save
Description copied from interface:Serializer
saves a Reflections instance into the given filename- Specified by:
save
in interfaceSerializer
-
toString
Description copied from interface:Serializer
returns a string serialization of the given Reflections instance- Specified by:
toString
in interfaceSerializer
-
createDocument
-