Class ByteBufInputStream

  • All Implemented Interfaces:
    io.grpc.Drainable, io.grpc.KnownLength, java.io.Closeable, java.lang.AutoCloseable

    public class ByteBufInputStream
    extends java.io.InputStream
    implements io.grpc.Drainable, io.grpc.KnownLength
    A Drainable InputStream that reads an ByteBuf.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      int drainTo​(java.io.OutputStream target)  
      int read()  
      • Methods inherited from class java.io.InputStream

        close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • drainTo

        public int drainTo​(java.io.OutputStream target)
                    throws java.io.IOException
        Specified by:
        drainTo in interface io.grpc.Drainable
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Specified by:
        available in interface io.grpc.KnownLength
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException