Package org.apache.commons.net.nntp
Class Article
java.lang.Object
org.apache.commons.net.nntp.Article
- All Implemented Interfaces:
- Threadable
This is a class that contains the basic state needed for message retrieval and threading. With thanks to Jamie Zawinski (jwz@jwz.org)
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddHeaderField(String name, String val) Deprecated.voidaddReference(String msgId) Adds a message-id to the list of messages that this message references (i.e.intDeprecated.longgetDate()getFrom()String[]Returns the MessageId references as an array of StringsbooleanisDummy()String[]static voidprintThread(Article article) Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.static voidprintThread(Article article, int depth) Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.static voidprintThread(Article article, int depth, PrintStream ps) Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.static voidprintThread(Article article, PrintStream ps) Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.voidsetArticleId(String string) voidsetArticleNumber(int a) Deprecated.voidsetArticleNumber(long l) voidsetChild(Threadable child) voidvoidvoidsetNext(Threadable next) voidsetSubject(String string) booleantoString()
- 
Field Details- 
kid
- 
next
 
- 
- 
Constructor Details- 
Articlepublic Article()
 
- 
- 
Method Details- 
printThreadRecursive 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'
- Since:
- 3.4
 
- 
printThreadRecursive 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'
- depth- the current tree depth
 
- 
printThreadRecursive 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'
- depth- the current tree depth
- ps- the PrintStream to use
- Since:
- 3.4
 
- 
printThreadRecursive 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'
- ps- the PrintStream to use
- Since:
- 3.4
 
- 
addHeaderFieldDeprecated.
- 
addReferenceAdds a message-id to the list of messages that this message references (i.e. replies to)- Parameters:
- msgId- the message id to add
 
- 
getArticleId
- 
getArticleNumberDeprecated.
- 
getArticleNumberLong
- 
getDate
- 
getFrom
- 
getReferencesReturns the MessageId references as an array of Strings- Returns:
- an array of message-ids
 
- 
getSubject
- 
isDummy- Specified by:
- isDummyin interface- Threadable
 
- 
makeDummy- Specified by:
- makeDummyin interface- Threadable
 
- 
messageThreadId- Specified by:
- messageThreadIdin interface- Threadable
 
- 
messageThreadReferences- Specified by:
- messageThreadReferencesin interface- Threadable
 
- 
setArticleId
- 
setArticleNumberDeprecated.
- 
setArticleNumber
- 
setChild- Specified by:
- setChildin interface- Threadable
 
- 
setDate
- 
setFrom
- 
setNext- Specified by:
- setNextin interface- Threadable
 
- 
setSubject
- 
simplifiedSubject- Specified by:
- simplifiedSubjectin interface- Threadable
 
- 
subjectIsReply- Specified by:
- subjectIsReplyin interface- Threadable
 
- 
toString
 
-