Class Plugin.Engine.Target.Sink.ForJarOutputStream

    • Field Detail

      • outputStream

        private final java.util.jar.JarOutputStream outputStream
        The output stream to write to.
    • Constructor Detail

      • ForJarOutputStream

        public ForJarOutputStream​(java.util.jar.JarOutputStream outputStream)
        Creates a new sink for a jar file.
        Parameters:
        outputStream - The output stream to write to.
    • Method Detail

      • store

        public void store​(java.util.Map<TypeDescription,​byte[]> binaryRepresentations)
                   throws java.io.IOException
        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.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • retain

        public void retain​(Plugin.Engine.Source.Element element)
                    throws java.io.IOException
        Retains the supplied element in its original form.
        Specified by:
        retain in interface Plugin.Engine.Target.Sink
        Parameters:
        element - The element to retain.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException