com.croftsoft.core.net.news
Class UsenetMessage
java.lang.Object
com.croftsoft.core.net.news.UsenetMessage
- All Implemented Interfaces:
- Serializable
public final class UsenetMessage
- extends Object
- implements Serializable
USENET message (RFC 1036).
- Since:
- 2001-07-27
- Version:
- 2001-08-18
- See Also:
-
RFC 1036: Standard for Interchange of USENET Messages,
Serialized Form
- Author:
- David Wallace Croft
HEADER_FROM
public static final String HEADER_FROM
- See Also:
- Constant Field Values
HEADER_DATE
public static final String HEADER_DATE
- See Also:
- Constant Field Values
HEADER_NEWSGROUPS
public static final String HEADER_NEWSGROUPS
- See Also:
- Constant Field Values
HEADER_SUBJECT
public static final String HEADER_SUBJECT
- See Also:
- Constant Field Values
HEADER_MESSAGE_ID
public static final String HEADER_MESSAGE_ID
- See Also:
- Constant Field Values
HEADER_PATH
public static final String HEADER_PATH
- See Also:
- Constant Field Values
HEADER_FOLLOWUP_TO
public static final String HEADER_FOLLOWUP_TO
- See Also:
- Constant Field Values
HEADER_EXPIRES
public static final String HEADER_EXPIRES
- See Also:
- Constant Field Values
HEADER_REPLY_TO
public static final String HEADER_REPLY_TO
- See Also:
- Constant Field Values
HEADER_SENDER
public static final String HEADER_SENDER
- See Also:
- Constant Field Values
HEADER_REFERENCES
public static final String HEADER_REFERENCES
- See Also:
- Constant Field Values
HEADER_CONTROL
public static final String HEADER_CONTROL
- See Also:
- Constant Field Values
HEADER_DISTRIBUTION
public static final String HEADER_DISTRIBUTION
- See Also:
- Constant Field Values
HEADER_KEYWORDS
public static final String HEADER_KEYWORDS
- See Also:
- Constant Field Values
HEADER_SUMMARY
public static final String HEADER_SUMMARY
- See Also:
- Constant Field Values
HEADER_APPROVED
public static final String HEADER_APPROVED
- See Also:
- Constant Field Values
HEADER_LINES
public static final String HEADER_LINES
- See Also:
- Constant Field Values
HEADER_XREF
public static final String HEADER_XREF
- See Also:
- Constant Field Values
HEADER_ORGANIZATION
public static final String HEADER_ORGANIZATION
- See Also:
- Constant Field Values
HEADERS
public static final String[] HEADERS
UsenetMessage
public UsenetMessage()
UsenetMessage
public UsenetMessage(String from,
String newsgroup,
String subject,
String messageBody)
parse
public static UsenetMessage parse(BufferedReader bufferedReader)
throws IOException
- Throws:
IOException
parseBody
public static String parseBody(BufferedReader bufferedReader)
throws IOException
- Throws:
IOException
parseHeaderLine
public static Pair parseHeaderLine(String headerLine)
getHeader
public String getHeader(String name)
getBody
public String getBody()
setHeader
public void setHeader(String name,
String value)
setBody
public void setBody(String body)
toString
public String toString()
- Overrides:
toString
in class Object
CroftSoft Core Javadoc (2008-09-28 20:58:02)