接口 EntryWriter

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface EntryWriter
Interface used to write jar entry data.
从以下版本开始:
2.3.0
作者:
Phillip Webb
  • 方法概要

    修饰符和类型
    方法
    说明
    default int
    Return the size of the content that will be written, or -1 if the size is not known.
    void
    write(OutputStream outputStream)
    Write entry data to the specified output stream.
  • 方法详细资料

    • write

      void write(OutputStream outputStream) throws IOException
      Write entry data to the specified output stream.
      参数:
      outputStream - the destination for the data
      抛出:
      IOException - in case of I/O errors
    • size

      default int size()
      Return the size of the content that will be written, or -1 if the size is not known.
      返回:
      the size of the content