类 HttpxBinaryResponseContent
java.lang.Object
com.zhipu.oapi.core.response.HttpxBinaryResponseContent
- 所有已实现的接口:
Closeable,AutoCloseable
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()byte[]getText()Iterator<byte[]>iterBytes(int chunkSize) iterText(int chunkSize) voidstreamToFile(String file, int chunkSize) voidwriteToFile(String file)
-
构造器详细资料
-
HttpxBinaryResponseContent
public HttpxBinaryResponseContent(retrofit2.Response<okhttp3.ResponseBody> response)
-
-
方法详细资料
-
getContent
- 抛出:
IOException
-
getText
- 抛出:
IOException
-
getEncoding
-
iterBytes
- 抛出:
IOException
-
iterText
- 抛出:
IOException
-
writeToFile
- 抛出:
IOException
-
streamToFile
- 抛出:
IOException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-