}
private NewsgroupInfo[] __readNewsgroupListing() throws IOException
{
BufferedReader reader = new DotTerminatedMessageReader(_reader_);
// Start of with a big vector because we may be reading a very large
// amount of groups.
Vector<NewsgroupInfo> list = new Vector<NewsgroupInfo>(2048);
String line;
try {
while ((line = reader.readLine()) != null) {
NewsgroupInfo tmp = __parseNewsgroupListEntry(line);
if (tmp != null) {
list.addElement(tmp);
} else {
throw new MalformedServerReplyException(line);
}
}
} finally {
reader.close();
}
int size;
if ((size = list.size()) < 1) {
return new NewsgroupInfo[0];
}