Class AbstractStaticWeaveOutputHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.jar.JarOutputStream outputStreamHolder  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void addDirEntry​(java.lang.String dirPath)
      create directory into target directory, or insert directory entry into outputstream.
      abstract void addEntry​(java.io.InputStream jis, java.util.jar.JarEntry entry)
      Write entry into target, this method usually copy original class into target.
      abstract void addEntry​(java.util.jar.JarEntry targetEntry, byte[] entryBytes)
      Write entry bytes into target, this is usually called if class has been tranformed
      void closeOutputStream()
      Close the output stream.
      java.util.jar.JarOutputStream getOutputStream()
      Get the ouput stream instance.
      protected void readwriteStreams​(java.io.InputStream in, java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • outputStreamHolder

        protected java.util.jar.JarOutputStream outputStreamHolder
    • Constructor Detail

      • AbstractStaticWeaveOutputHandler

        public AbstractStaticWeaveOutputHandler()
    • Method Detail

      • addDirEntry

        public abstract void addDirEntry​(java.lang.String dirPath)
                                  throws java.io.IOException
        create directory into target directory, or insert directory entry into outputstream.
        Parameters:
        dirPath -
        Throws:
        java.io.IOException
      • addEntry

        public abstract void addEntry​(java.util.jar.JarEntry targetEntry,
                                      byte[] entryBytes)
                               throws java.io.IOException
        Write entry bytes into target, this is usually called if class has been tranformed
        Parameters:
        targetEntry -
        entryBytes -
        Throws:
        java.io.IOException
      • addEntry

        public abstract void addEntry​(java.io.InputStream jis,
                                      java.util.jar.JarEntry entry)
                               throws java.io.IOException,
                                      java.net.URISyntaxException
        Write entry into target, this method usually copy original class into target.
        Parameters:
        jis -
        entry -
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • closeOutputStream

        public void closeOutputStream()
                               throws java.io.IOException
        Close the output stream.
        Throws:
        java.io.IOException
      • getOutputStream

        public java.util.jar.JarOutputStream getOutputStream()
        Get the ouput stream instance.
        Returns:
      • readwriteStreams

        protected void readwriteStreams​(java.io.InputStream in,
                                        java.io.OutputStream out)
                                 throws java.io.IOException
        Throws:
        java.io.IOException