org.dspace.checker
Class BitstreamDAO

java.lang.Object
  extended by org.dspace.checker.BitstreamDAO

public class BitstreamDAO
extends Object

Data Access Object for Bitstreams.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Constructor Summary
BitstreamDAO()
          Default Constructor
 
Method Summary
 InputStream getBitstream(int id)
          Retrieves the bitstream from the bitstore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitstreamDAO

public BitstreamDAO()
Default Constructor

Method Detail

getBitstream

public InputStream getBitstream(int id)
                         throws IOException,
                                SQLException
Retrieves the bitstream from the bitstore.

Parameters:
id - the bitstream id.
Returns:
Bitstream as an InputStream
Throws:
IOException - Rethrown from BitstreamStorageManager
SQLException - Rethrown from BitstreamStorageManager
See Also:
BitstreamStorageManager.retrieve(Context, int)


Copyright © 2010 DuraSpace. All Rights Reserved.