org.archive.wayback.resourcestore.locationdb
Class FlatFileResourceFileLocationDB
java.lang.Object
org.archive.wayback.resourcestore.locationdb.FlatFileResourceFileLocationDB
- All Implemented Interfaces:
- ResourceFileLocationDB
public class FlatFileResourceFileLocationDB
- extends Object
- implements ResourceFileLocationDB
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileResourceFileLocationDB
public FlatFileResourceFileLocationDB()
addNameUrl
public void addNameUrl(String name,
String url)
throws IOException
- Specified by:
addNameUrl in interface ResourceFileLocationDB
- Throws:
IOException
getCurrentMark
public long getCurrentMark()
throws IOException
- Specified by:
getCurrentMark in interface ResourceFileLocationDB
- Throws:
IOException
getNamesBetweenMarks
public CloseableIterator<String> getNamesBetweenMarks(long start,
long end)
throws IOException
- Specified by:
getNamesBetweenMarks in interface ResourceFileLocationDB
- Throws:
IOException
nameToUrls
public String[] nameToUrls(String name)
throws IOException
- Specified by:
nameToUrls in interface ResourceFileLocationDB
- Throws:
IOException
removeNameUrl
public void removeNameUrl(String name,
String url)
throws IOException
- Specified by:
removeNameUrl in interface ResourceFileLocationDB
- Throws:
IOException
shutdown
public void shutdown()
throws IOException
- Specified by:
shutdown in interface ResourceFileLocationDB
- Throws:
IOException
setPath
public void setPath(String path)
- Parameters:
path - the path to set
getPath
public String getPath()
- Returns:
- the path
setDelimiter
public void setDelimiter(String delimiter)
- Parameters:
delimter - the delimiter to set
getDelimiter
public String getDelimiter()
- Returns:
- the delimiter
Copyright © 2005-2011 Internet Archive. All Rights Reserved.