Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-237

add streaming methods (corresponding to array methods) to NNTPClient

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0, 1.1, 1.1.1, 1.2, 1.2.1, 1.2.2, 1.3, 1.4, 2.0
    • 3.0
    • NNTP
    • None

    Description

      NNTPClient.listNewNews(..) can use a lot of memory for large groups. I recommend adding streaming version of the same.

      Iterator<String> iterateNewNews(NewGroupsOrNewsQuery query);

      One could also add streaming versions of the *Newsgroups methods, but these are expected to have smaller results than some large newsgroups.

      Iterator<NewsgroupInfo> iterateNewNewsgroups(NewGroupsOrNewsQuery query);
      Iterator<NewsgroupInfo> iterateNewsgroups();
      Iterator<NewsgroupInfo> iterateNewsgroups(String wildmat);

      I'll work on iterateNewNews(..) and submit a patch if it's good.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgeis Ken Geis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: