org.brains2b.coffee.message
Class GroupList
java.lang.Object
org.brains2b.coffee.message.GroupList
- All Implemented Interfaces:
- NNTPMessage
- Direct Known Subclasses:
- FilterGroupList
public class GroupList
- extends java.lang.Object
- implements NNTPMessage
[Short description]
[Long description]
- Version:
- $Revision: 1.10 $ $Date: 2009/10/05 02:17:18 $
- Author:
- dennis@brains2b.nl
Field Summary |
protected java.util.ArrayList |
m_group
|
protected int |
m_type
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_type
protected int m_type
m_group
protected java.util.ArrayList m_group
GroupList
public GroupList()
addGroup
public void addGroup(NewsGroup group)
removeGroup
public void removeGroup(NewsGroup group)
removeGroup
public void removeGroup(java.lang.String groupName)
getGroup
public NewsGroup getGroup(java.lang.String name)
getGroupNames
public java.lang.String[] getGroupNames()
- Deprecated. use getGroups
- Returns:
- String[]
getGroups
public java.util.List getGroups()
addLine
public void addLine(java.lang.String s)
- Specified by:
addLine
in interface NNTPMessage
addHeader
public void addHeader(int id,
java.lang.String s)
- Specified by:
addHeader
in interface NNTPMessage
isHeaderSet
public boolean isHeaderSet()
- Specified by:
isHeaderSet
in interface NNTPMessage
endMessage
public void endMessage()
- Specified by:
endMessage
in interface NNTPMessage
writeMessage
public void writeMessage(org.brains2b.saxo.SAXWriter sw)
throws org.xml.sax.SAXException
- Specified by:
writeMessage
in interface NNTPMessage
- Throws:
org.xml.sax.SAXException
getType
public int getType()
- Specified by:
getType
in interface NNTPMessage
hasContent
public boolean hasContent()
- Specified by:
hasContent
in interface NNTPMessage
getSize
public int getSize()
- Specified by:
getSize
in interface NNTPMessage
getId
public java.lang.String getId()
- Specified by:
getId
in interface NNTPMessage