类 FilePreviewResponse

java.lang.Object
io.github.imfangs.dify.client.model.file.FilePreviewResponse
所有已实现的接口:
AutoCloseable

public class FilePreviewResponse extends Object implements AutoCloseable
文件预览响应
  • 构造器详细资料

    • FilePreviewResponse

      public FilePreviewResponse()
  • 方法详细资料

    • getContentAsBytes

      public byte[] getContentAsBytes() throws IOException
      获取文件内容为字节数组 注意:此方法会消费掉 InputStream,调用后流将不可再次读取
      返回:
      文件字节数组
      抛出:
      IOException - IO异常
    • close

      public void close()
      关闭输入流
      指定者:
      close 在接口中 AutoCloseable