Class Plugin.Engine.Target.InMemory

    • Constructor Detail

      • InMemory

        public InMemory()
        Creates a new in-memory storage.
      • InMemory

        public InMemory​(Map<String,​byte[]> storage)
        Creates a new in-memory storage.
        Parameters:
        storage - The map for storing all elements being received.
    • Method Detail

      • store

        public void store​(Map<TypeDescription,​byte[]> binaryRepresentations)
        Stores the supplied binary representation of types in this sink.
        Specified by:
        store in interface Plugin.Engine.Target.Sink
        Parameters:
        binaryRepresentations - The binary representations to store.
      • getStorage

        public Map<String,​byte[]> getStorage()
        Returns the in-memory storage.
        Returns:
        The in-memory storage.
      • toTypeMap

        public Map<String,​byte[]> toTypeMap()
        Returns the in-memory storage as a type-map where all non-class files are discarded.
        Returns:
        The in-memory storage as a type map.