org.archive.wayback.resourcestore.locationdb
Class FlatFileResourceFileLocationDB

java.lang.Object
  extended by org.archive.wayback.resourcestore.locationdb.FlatFileResourceFileLocationDB
All Implemented Interfaces:
ResourceFileLocationDB

public class FlatFileResourceFileLocationDB
extends Object
implements ResourceFileLocationDB


Constructor Summary
FlatFileResourceFileLocationDB()
           
 
Method Summary
 void addNameUrl(String name, String url)
           
 long getCurrentMark()
           
 String getDelimiter()
           
 CloseableIterator<String> getNamesBetweenMarks(long start, long end)
           
 String getPath()
           
 String[] nameToUrls(String name)
           
 void removeNameUrl(String name, String url)
           
 void setDelimiter(String delimiter)
           
 void setPath(String path)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileResourceFileLocationDB

public FlatFileResourceFileLocationDB()
Method Detail

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.