public class XmlSerializer extends java.lang.Object implements Serializer
an 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 and Description |
---|
XmlSerializer() |
Modifier and Type | Method and Description |
---|---|
private org.dom4j.Document |
createDocument(Reflections reflections) |
Reflections |
read(java.io.InputStream inputStream)
reads the input stream into a new Reflections instance, populating it's store
|
java.io.File |
save(Reflections reflections,
java.lang.String filename)
saves a Reflections instance into the given filename
|
java.lang.String |
toString(Reflections reflections)
returns a string serialization of the given Reflections instance
|
public Reflections read(java.io.InputStream inputStream)
Serializer
read
in interface Serializer
public java.io.File save(Reflections reflections, java.lang.String filename)
Serializer
save
in interface Serializer
public java.lang.String toString(Reflections reflections)
Serializer
toString
in interface Serializer
private org.dom4j.Document createDocument(Reflections reflections)