|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.javamail.store.nntp.newsrc.RangeList
public class RangeList
Manage a list of ranges values from a newsrc file.
| Constructor Summary | |
|---|---|
RangeList(String line)
Create a RangeList instance from a newsrc range line. |
|
| Method Summary | |
|---|---|
void |
insert(Range newRange)
Insert a range item into our list. |
boolean |
isDirty()
Return the state of the dirty flag. |
boolean |
isMarked(int article)
Test if a given article point falls within one of the contained Ranges. |
void |
save(Writer out)
Save this List of Ranges out to a .newsrc file. |
void |
setMarked(int article)
Mark a target article as having been seen. |
void |
setUnmarked(int article)
Clear the seen mark for a target article. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeList(String line)
line - The newsrc range line.| Method Detail |
|---|
public void insert(Range newRange)
newRange - The new range item.public boolean isMarked(int article)
article - The test point.
public void setMarked(int article)
article - The target article number.public void setUnmarked(int article)
article - The target article number.
public void save(Writer out)
throws IOException
out - The target output stream.
IOExceptionpublic boolean isDirty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||