All Packages This Package Class Hierarchy Class Search Index
Class grendel.storage.NewsRCLine
java.lang.Object | +----grendel.storage.NewsSet | +----grendel.storage.NewsRCLine
This class represents a single line from a newsrc file: a group name, whether it is subscribed, and a set of message numbers.
class NewsRCLine extends grendel.storage.NewsSet { // Fields 3 private String group_name; private NewsRC rc; private boolean subscribed; // Constructors 3 NewsRCLine(NewsRC, String, boolean); NewsRCLine(NewsRC, String, boolean, byte[], int, int); NewsRCLine(NewsRC, String, boolean, ByteBuf); // Methods 5 public void markDirty(); String name(); void setSubscribed(boolean); boolean subscribed(); public void write(ByteBuf); }
Fields
rc
private NewsRC rc
group_name
private String group_name
subscribed
private boolean subscribed
Constructors
NewsRCLine
NewsRCLine(NewsRC parent, String group, boolean subbed)
Creates a NewsRCLine with no messages marked as read.
NewsRCLine
NewsRCLine(NewsRC parent, String group, boolean subbed, ByteBuf numbers)
Creates a NewsRCLine with the indicated messages marked as read.
NewsRCLine
NewsRCLine(NewsRC parent, String name, boolean subbed, byte[] line, int start, int end)
As above, but takes a byte array and a subsequence into it, instead of a ByteBuf object.
Methods
name
String name()
Returns the name of this newsgroup.
subscribed
boolean subscribed()
Returns whether this newsgroup is subscribed.
setSubscribed
void setSubscribed(boolean subscribed)
Change whether this newsgroup is subscribed.
write
public void write(ByteBuf out)
markDirty
public void markDirty()
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4