public class HalfDuplexProtoIO extends Object implements ProtoIO
| Constructor and Description |
|---|
HalfDuplexProtoIO(ProtoIO delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
call(org.marid.io.IOBiFunction<InputStream,OutputStream,T> function) |
void |
close() |
void |
doWith(org.marid.io.IOBiConsumer<InputStream,OutputStream> consumer) |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
public HalfDuplexProtoIO(ProtoIO delegate)
public InputStream getInputStream()
getInputStream in interface ProtoIOpublic OutputStream getOutputStream()
getOutputStream in interface ProtoIOpublic void doWith(org.marid.io.IOBiConsumer<InputStream,OutputStream> consumer) throws IOException
doWith in interface ProtoIOIOExceptionpublic <T> T call(org.marid.io.IOBiFunction<InputStream,OutputStream,T> function) throws IOException
call in interface ProtoIOIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2017 MARID software development group. All rights reserved.