类 AppendableConsumerInputStreamSource

java.lang.Object
cn.taketoday.aot.generate.AppendableConsumerInputStreamSource
所有已实现的接口:
InputStreamSource, ThrowingConsumer<OutputStream>, Consumer<OutputStream>

class AppendableConsumerInputStreamSource extends Object implements InputStreamSource
Adapter class to convert a ThrowingConsumer of Appendable to an InputStreamSource.
从以下版本开始:
4.0
作者:
Phillip Webb
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getInputStream

      public InputStream getInputStream() throws IOException
      从接口复制的说明: InputStreamSource
      Return an InputStream for the content of an underlying resource.

      It is expected that each call creates a fresh stream.

      This requirement is particularly important when you consider an API such as JavaMail, which needs to be able to read the stream multiple times when creating mail attachments. For such a use case, it is required that each getInputStream() call returns a fresh stream.

      指定者:
      getInputStream 在接口中 InputStreamSource
      返回:
      the input stream for the underlying resource (must not be null)
      抛出:
      FileNotFoundException - if the underlying resource does not exist
      IOException - if the content stream could not be opened
      另请参阅:
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object