Class StdProtoIO

java.lang.Object
org.marid.proto.impl.io.StdProtoIO
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.marid.io.IOCloseable, ProtoIO
Direct Known Subclasses:
StdProtoSocketIO

public class StdProtoIO
extends java.lang.Object
implements ProtoIO, java.io.Closeable
Author:
Dmitry Ovchinnikov
  • Constructor Summary

    Constructors 
    Constructor Description
    StdProtoIO​(java.io.InputStream inputStream, java.io.OutputStream outputStream)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    java.io.InputStream getInputStream()  
    java.io.OutputStream getOutputStream()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.marid.io.IOCloseable

    closeSafely

    Methods inherited from interface org.marid.proto.io.ProtoIO

    call, doWith
  • Constructor Details

    • StdProtoIO

      public StdProtoIO​(java.io.InputStream inputStream, java.io.OutputStream outputStream)
  • Method Details

    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException
    • getInputStream

      public java.io.InputStream getInputStream()
      Specified by:
      getInputStream in interface ProtoIO
    • getOutputStream

      public java.io.OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface ProtoIO