You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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