public class XmlSerializer extends Object implements Serializer
an example of produced xml:
<?xml version="1.0" encoding="UTF-8"?> <Reflections> <org.reflections.scanners.MethodAnnotationsScanner> <entry> <key>org.reflections.TestModel$AM1</key> <values> <value>org.reflections.TestModel$C4.m3()</value> <value>org.reflections.TestModel$C4.m1(int[][], java.lang.String[][])</value> ...
Constructor and Description |
---|
XmlSerializer() |
Modifier and Type | Method and Description |
---|---|
Reflections |
read(InputStream inputStream)
reads the input stream into a new Reflections instance, populating it's store
|
File |
save(Reflections reflections,
String filename)
saves a Reflections instance into the given filename
|
String |
toString(Reflections reflections)
returns a string serialization of the given Reflections instance
|
public Reflections read(InputStream inputStream)
Serializer
read
in interface Serializer
public File save(Reflections reflections, String filename)
Serializer
save
in interface Serializer
public String toString(Reflections reflections)
Serializer
toString
in interface Serializer
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.