public class XmlSerializer extends 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 |
|---|---|
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)
Serializerread in interface Serializerpublic File save(Reflections reflections, String filename)
Serializersave in interface Serializerpublic String toString(Reflections reflections)
SerializertoString in interface SerializerCopyright © 2014. All rights reserved.