edu.indiana.dlib.metsnav.config
Class URLDataSource

java.lang.Object
  extended by edu.indiana.dlib.metsnav.config.DataSourceConfig
      extended by edu.indiana.dlib.metsnav.config.FileSystemDataSource
          extended by edu.indiana.dlib.metsnav.config.URLDataSource

public class URLDataSource
extends FileSystemDataSource

This data source allows user to append a URL pointing to the METS file as the object id

Author:
Ryan Scherle, 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
URLDataSource()
           
 
Method Summary
 InputStream getStream(String cid)
          Return the file input stream.
 
Methods inherited from class edu.indiana.dlib.metsnav.config.FileSystemDataSource
getAbsolutePath, getRelativePath, setAbsolutePath, setRelativePath
 
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

URLDataSource

public URLDataSource()
Method Detail

getStream

public InputStream getStream(String cid)
Description copied from class: FileSystemDataSource
Return the file input stream. It returns null if the cid doesn't exist

Overrides:
getStream in class FileSystemDataSource
Returns:


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