code: @Override
      public TestSet parseTapStream(Readable tapStream) {
          state = new StreamStatus();
          baseIndentation = Integer.MAX_VALUE;
          try (Scanner scanner = new Scanner(tapStream)) {
              while (scanner.hasNextLine()) {
                  String line = scanner.nextLine();
                  if (line != null && line.length() > 0) {
                      parseLine(line);
                  }
              }
              onFinish();
          } catch (Exception e) {
              throw new ParserException(String.format("Error parsing TAP Stream: %s", e.getMessage()), e);
          }
  
          return state.getTestSet();
      }
docs: {@inheritDoc}