接口 LoaderClassesWriter

  • 所有已知实现类:
    JarWriter

    public interface LoaderClassesWriter
    • 方法详细资料

      • writeLoaderClasses

        void writeLoaderClasses​(JarInputStream jarInputStream)
                         throws IOException
        Write classes needed by the cabin launcher to the JAR.
        参数:
        jarInputStream - the inputStream of the resource containing the loader classes to be written
        抛出:
        IOException - if the classes cannot be written
      • writeEntry

        void writeEntry​(String name,
                        InputStream inputStream)
                 throws IOException
        Write a single entry to the JAR.
        参数:
        name - the name of the entry
        inputStream - the input stream content
        抛出:
        IOException - if the entry cannot be written