public class XmlSerializer extends Object implements Serializer
Reflections reflections.save(file, new XmlSerializer())
an example of produced xml:
<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 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareFilepublic Reflections read(InputStream inputStream)
Serializerread in interface Serializerpublic File save(Reflections reflections, String filename)
Serializersave in interface SerializerCopyright © 2021. All rights reserved.