Class FullReadInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.mysql.cj.protocol.FullReadInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class FullReadInputStream
extends java.io.FilterInputStream
InputStream wrapper that provides methods to aggregate reads of a given size. c.f. readFully(byte[],int,int).
  • Field Summary

    Fields inherited from class java.io.FilterInputStream

    in
  • Constructor Summary

    Constructors 
    Constructor Description
    FullReadInputStream​(java.io.InputStream underlyingStream)  
  • Method Summary

    Modifier and Type Method Description
    java.io.InputStream getUnderlyingStream()  
    int readFully​(byte[] b)  
    int readFully​(byte[] b, int off, int len)  
    long skipFully​(long len)  
    int skipLengthEncodedInteger()  

    Methods inherited from class java.io.FilterInputStream

    available, close, mark, markSupported, read, read, read, reset, skip

    Methods inherited from class java.io.InputStream

    nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getUnderlyingStream

      public java.io.InputStream getUnderlyingStream()
    • readFully

      public int readFully​(byte[] b) throws java.io.IOException
      Throws:
      java.io.IOException
    • readFully

      public int readFully​(byte[] b, int off, int len) throws java.io.IOException
      Throws:
      java.io.IOException
    • skipFully

      public long skipFully​(long len) throws java.io.IOException
      Throws:
      java.io.IOException
    • skipLengthEncodedInteger

      public int skipLengthEncodedInteger() throws java.io.IOException
      Throws:
      java.io.IOException