| |
|
| java.lang.Object org.apache.commons.net.nntp.Article
Article | public class Article implements Threadable(Code) | | This is a class that contains the basic state needed for message retrieval and threading.
With thanks to Jamie Zawinski
author: rwinston |
Constructor Summary | |
public | Article() |
addHeaderField | public void addHeaderField(String name, String val)(Code) | | Adds an arbitrary header key and value to this message's header.
Parameters: name - the header name Parameters: val - the header value |
addReference | public void addReference(String msgId)(Code) | | Adds a message-id to the list of messages that this message references (i.e. replies to)
Parameters: msgId - |
getArticleNumber | public int getArticleNumber()(Code) | | |
getReferences | public String[] getReferences()(Code) | | Returns the MessageId references as an array of Strings
an array of message-ids |
isDummy | public boolean isDummy()(Code) | | |
messageThreadReferences | public String[] messageThreadReferences()(Code) | | |
printThread | public static void printThread(Article article, int depth)(Code) | | Recursive method that traverses a pre-threaded graph (or tree)
of connected Article objects and prints them out.
Parameters: article - the root of the article 'tree' Parameters: depth - the current tree depth |
setArticleNumber | public void setArticleNumber(int i)(Code) | | |
subjectIsReply | public boolean subjectIsReply()(Code) | | |
|
|
|