public class InputStreamConnectionWriter extends Object implements ConnectionWriter
ConnectionWriter
which write data from InputStream
.
User: Kirill, Date: 23.08.13 14:51
Modifier and Type | Field and Description |
---|---|
private InputStream |
inputStream |
Constructor and Description |
---|
InputStreamConnectionWriter(InputStream inputStream)
Set the source of data.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getContentLength()
Get length of content.
|
void |
write(OutputStream outputStream)
Write data.
|
private InputStream inputStream
public InputStreamConnectionWriter(InputStream inputStream)
inputStream
- the source streampublic void write(OutputStream outputStream) throws IOException
write
in interface ConnectionWriter
outputStream
- the target stream for writeIOException
- if an I/O error occurspublic Integer getContentLength()
getContentLength
in interface ConnectionWriter
Copyright © 2015. All rights reserved.