Package org.reflections.serializers
Class JsonSerializer
- java.lang.Object
-
- org.reflections.serializers.JsonSerializer
-
- All Implemented Interfaces:
Serializer
public class JsonSerializer extends Object implements Serializer
serialization of Reflections to jsonan example of produced json:
{"store":{"storeMap": {"org.reflections.scanners.TypeAnnotationsScanner":{ "org.reflections.TestModel$AC1":["org.reflections.TestModel$C1"], "org.reflections.TestModel$AC2":["org.reflections.TestModel$I3", ...
-
-
Constructor Summary
Constructors Constructor Description JsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reflectionsread(InputStream inputStream)reads the input stream into a new Reflections instance, populating it's storeFilesave(Reflections reflections, String filename)saves a Reflections instance into the given filenameStringtoString(Reflections reflections)returns a string serialization of the given Reflections instance
-
-
-
Method Detail
-
read
public Reflections read(InputStream inputStream)
Description copied from interface:Serializerreads the input stream into a new Reflections instance, populating it's store- Specified by:
readin interfaceSerializer
-
save
public File save(Reflections reflections, String filename)
Description copied from interface:Serializersaves a Reflections instance into the given filename- Specified by:
savein interfaceSerializer
-
toString
public String toString(Reflections reflections)
Description copied from interface:Serializerreturns a string serialization of the given Reflections instance- Specified by:
toStringin interfaceSerializer
-
-