public interface ContentSource
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
long |
writeTo(OutputStream stream)
Write this content to a
OutputStream instance. |
long |
writeTo(Socket socket)
Write this content on to a network socket
|
long |
writeTo(SocketChannel channel)
Write this content on to a
SocketChannel |
long getLength()
long writeTo(Socket socket) throws IOException
socket - socketIOException - IOExceptionlong writeTo(SocketChannel channel) throws IOException
SocketChannelchannel - channelIOException - IOExceptionlong writeTo(OutputStream stream) throws IOException
OutputStream instance.stream - streamIOException - IOExceptionCopyright © 2019. All rights reserved.