public int read()

in src/main/java/com/epam/digital/data/platform/restapi/core/filter/CustomServletInputStream.java [68:85]


  public int read() throws IOException {
    int i;
    if (!isFinished()) {
      i = bytes[lastIndexRetrieved + 1];
      lastIndexRetrieved++;
      if (isFinished() && (readListener != null)) {
        try {
          readListener.onAllDataRead();
        } catch (IOException ex) {
          readListener.onError(ex);
          throw ex;
        }
      }
      return i;
    } else {
      return -1;
    }
  }