Package org.marid.proto.io
Class HalfDuplexProtoIO
- java.lang.Object
-
- org.marid.proto.io.HalfDuplexProtoIO
-
-
Constructor Summary
Constructors Constructor Description HalfDuplexProtoIO(ProtoIO delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tcall(org.marid.io.IOBiFunction<java.io.InputStream,java.io.OutputStream,T> function)voidclose()voiddoWith(org.marid.io.IOBiConsumer<java.io.InputStream,java.io.OutputStream> consumer)java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
HalfDuplexProtoIO
public HalfDuplexProtoIO(ProtoIO delegate)
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStreamin interfaceProtoIO
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceProtoIO
-
doWith
public void doWith(org.marid.io.IOBiConsumer<java.io.InputStream,java.io.OutputStream> consumer) throws java.io.IOException
-
call
public <T> T call(org.marid.io.IOBiFunction<java.io.InputStream,java.io.OutputStream,T> function) throws java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-