|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.rbl.data.RblFile
public class RblFile
This class implements a hash-based RBL.
| Constructor Summary | |
|---|---|
RblFile(File file)
|
|
| Method Summary | |
|---|---|
void |
add(RBListEntry entry)
This method adds the given entry to the list. |
boolean |
contains(String name)
Checks whether the given key (e.g. |
RBListEntry |
lookup(String name)
Returns the entry for the given name. |
protected void |
readDatabase(File file)
This method parses the given file and reads all entries found within. |
boolean |
remove(String name)
|
List<RBListEntry> |
search(String query)
|
void |
store()
|
void |
store(OutputStream o)
Writes this RBL to the given output stream (CSV format). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RblFile(File file)
throws IOException
file -
IOException| Method Detail |
|---|
protected void readDatabase(File file)
throws IOException
file -
IOException
public void store(OutputStream o)
throws IOException
o -
IOExceptionpublic void add(RBListEntry entry)
RBList
add in interface RBListRBList.add(org.jwall.rbl.data.RBListEntry)public boolean contains(String name)
RBList
contains in interface RBListRBList.contains(java.lang.String)public RBListEntry lookup(String name)
RBList
lookup in interface RBListRBList.lookup(java.lang.String)public boolean remove(String name)
remove in interface RBListpublic List<RBListEntry> search(String query)
search in interface RBListpublic void store()
store in interface RBList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||