Package spoon.support

Class SerializationModelStreamer

  • All Implemented Interfaces:
    ModelStreamer

    public class SerializationModelStreamer
    extends java.lang.Object
    implements ModelStreamer
    This class provides a regular Java serialization-based implementation of the model streamer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Factory load​(java.io.InputStream in)
      Loads a factory (and all its associated Java program elements).
      void save​(Factory f, java.io.OutputStream out)
      Saves a factory (and all its associated Java program elements).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializationModelStreamer

        public SerializationModelStreamer()
        Default constructor.
    • Method Detail

      • load

        public Factory load​(java.io.InputStream in)
                     throws java.io.IOException
        Description copied from interface: ModelStreamer
        Loads a factory (and all its associated Java program elements). Tries to decompress the file given the available CompressionType
        Specified by:
        load in interface ModelStreamer
        Parameters:
        in - the used input stream
        Returns:
        the loaded factory
        Throws:
        java.io.IOException - if some IO error occurs