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

add streaming methods (corresponding to array methods) to NNTPClient

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.1, 1.1.1, 1.2, 1.2.1, 1.2.2, 1.3, 1.4, 2.0
    • Fix Version/s: 3.0
    • Component/s: NNTP
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: