edu.indiana.dlib.metsnav.config
Class FileSystemDataSource

java.lang.Object
  extended by edu.indiana.dlib.metsnav.config.DataSourceConfig
      extended by edu.indiana.dlib.metsnav.config.FileSystemDataSource
Direct Known Subclasses:
URLDataSource

public class FileSystemDataSource
extends DataSourceConfig

Author:
David Jiao

Field Summary
 
Fields inherited from class edu.indiana.dlib.metsnav.config.DataSourceConfig
daoType, METS_1_4, METS_1_5, metsVersion, pathPrefix
 
Constructor Summary
FileSystemDataSource()
           
 
Method Summary
 String getAbsolutePath()
           
 String getRelativePath()
           
 InputStream getStream(String cid)
          Return the file input stream.
 void setAbsolutePath(String absolutePath)
           
 void setRelativePath(String relativePath)
           
 
Methods inherited from class edu.indiana.dlib.metsnav.config.DataSourceConfig
getDaoType, getMetsVersion, getPathPrefix, setDaoType, setMetsVersion, setPathPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemDataSource

public FileSystemDataSource()
Parameters:
metsPath -
Method Detail

getStream

public InputStream getStream(String cid)
Return the file input stream. It returns null if the cid doesn't exist

Parameters:
cid -
Returns:

getRelativePath

public String getRelativePath()
Returns:
Returns the relativePath.

setRelativePath

public void setRelativePath(String relativePath)
Parameters:
relativePath - The relativePath to set.

getAbsolutePath

public String getAbsolutePath()
Returns:
Returns the absolutePath.

setAbsolutePath

public void setAbsolutePath(String absolutePath)
Parameters:
absolutePath - The absolutePath to set.


Copyright © 2005 Trustees of Indiana University. All Rights Reserved.