Modifier and Type | Field and Description |
---|---|
long |
contentLength |
Map<String,Object> |
header |
InputStream |
input |
Constructor and Description |
---|
StreamDownload(InputStream input,
Map<String,Object> header,
long contentLength) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
String |
getContentType() |
Map<String,Object> |
getHeader() |
void |
write(OutputStream out) |
public InputStream input
public long contentLength
public StreamDownload(InputStream input, Map<String,Object> header, long contentLength)
public String getContentType()
getContentType
in interface Download
public long getContentLength()
getContentLength
in interface Download
public void write(OutputStream out) throws IOException
write
in interface Download
IOException
Copyright © 2018 Brandao. All rights reserved.