The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class grendel.storage.NewsRCLine
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) 

Converts the object back into a printed representation for the file. This will be something like "alt.group: 1-29627,32861-32863".

Overrides:
write in class NewsSet


markDirty

   public void markDirty() 

Called when a change is made to the set. This just invokes the markDirty() method on the parent NewsRC object.

Overrides:
markDirty in class NewsSet


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.