Interface InputSource


  • public interface InputSource

    This interface defines methods to allow an InputStream or Reader to notify the developer when and how much data is ready to be read without blocking.

    Since:
    2.0
    • Method Detail

      • isFinished

        boolean isFinished()
        Returns:
        true when all data for this particular request has been read, otherwise returns false.
      • readyData

        int readyData()
        Returns:
        the number of bytes (or characters) that may be obtained without blocking. Note when dealing with characters, this method may return an estimate on the number of characters available.
      • isReady

        boolean isReady()
        Returns:
        true if data can be obtained without blocking, otherwise returns false.