| Constructor and Description |
|---|
FileBACStore()
Constructs a BAC store using a default file location.
|
FileBACStore(File location)
Constructs a BAC store using the given file location.
|
FileBACStore(URL location)
Constructs a BAC store using the given file location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(BACKeySpec entry)
Adds an entry to this BAC store.
|
void |
addEntry(int index,
BACKeySpec entry)
Adds an entry to this BAC store at a specific index.
|
List<BACKeySpec> |
getEntries()
Gets the BAC key entries.
|
BACKeySpec |
getEntry(int index)
Gets an entry from this BAC store.
|
File |
getLocation()
Gets the file that stores the BAC store.
|
void |
removeEntry(int index)
Removes an entry from the BAC store.
|
void |
setLocation(File location)
Sets the file location for the BAC store.
|
String |
toString()
Gets a textual representation of this BAC store.
|
public FileBACStore()
public FileBACStore(File location)
location - a filepublic FileBACStore(URL location)
location - a URL for a filepublic File getLocation()
public void setLocation(File location)
location - a filepublic List<BACKeySpec> getEntries()
getEntries in interface BACStorepublic void addEntry(BACKeySpec entry)
public void addEntry(int index,
BACKeySpec entry)
public void removeEntry(int index)
removeEntry in interface BACStoreindex - the index of the BAC key entry to removepublic BACKeySpec getEntry(int index)