Package spoon.support
Class SerializationModelStreamer
java.lang.Object
spoon.support.SerializationModelStreamer
- All Implemented Interfaces:
ModelStreamer
This class provides a regular Java serialization-based implementation of the
model streamer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(InputStream in)Loads a factory (and all its associated Java program elements).voidsave(Factory f, OutputStream out)Saves a factory (and all its associated Java program elements).
-
Constructor Details
-
SerializationModelStreamer
public SerializationModelStreamer()Default constructor.
-
-
Method Details
-
save
Description copied from interface:ModelStreamerSaves a factory (and all its associated Java program elements). Stream is GZIP compressed by default, seeEnvironment.setCompressionType(spoon.support.CompressionType)- Specified by:
savein interfaceModelStreamer- Parameters:
f- the factory to be saveout- the used output stream- Throws:
IOException- if some IO error occurs
-
load
Description copied from interface:ModelStreamerLoads a factory (and all its associated Java program elements). Tries to decompress the file given the availableCompressionType- Specified by:
loadin interfaceModelStreamer- Parameters:
in- the used input stream- Returns:
- the loaded factory
- Throws:
IOException- if some IO error occurs
-