public class DownloadFileResponseBody extends Object implements KintoneResponseBody, AutoCloseable
Constructor and Description |
---|
DownloadFileResponseBody(HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this resource.
|
InputStream |
getContent()
Gets the content of the file.
|
Long |
getContentLength()
Returns the size of content in bytes.
|
String |
getContentType()
Returns the MIME type of specified file.
|
@ConstructorProperties(value="response") public DownloadFileResponseBody(HttpResponse response)
public Long getContentLength()
public String getContentType()
public InputStream getContent() throws IOException
IOException
- if an I/O error occurspublic void close() throws IOException
close
in interface AutoCloseable
IOException
- if an I/O error occurs