| Modifier and Type | Method and Description |
|---|---|
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).
|
public RblFile(File file) throws IOException
file - IOExceptionprotected void readDatabase(File file) throws IOException
file - IOExceptionpublic void store(OutputStream o) throws IOException
o - IOExceptionpublic void add(RBListEntry entry)
RBListadd in interface RBListRBList.add(org.jwall.rbl.data.RBListEntry)public boolean contains(String name)
RBListcontains in interface RBListRBList.contains(java.lang.String)public RBListEntry lookup(String name)
RBListlookup in interface RBListRBList.lookup(java.lang.String)public List<RBListEntry> search(String query)
Copyright © 2013. All Rights Reserved.