On Fri, Mar 22, 2013 at 9:21 AM, Jonathan Freesbay <[email protected]> wrote: > How can I get the location of a bitstream from an instance of > org.dspace.content.Bitstream?
Hi Jonathan, for local assetstore (accessible via local filesystem) the path definition hasn't changed since the first release of DSpace. So you can construct the path from the available parts (dspace.dir, "assetstore", parts of internal_id, internal_id). SRB has been added later, but I wouldn't expect changes in it, even if you need to care about it at all. > The function I want is getFile from > org.dspace.storage.bitstore.BitStreamStorageManager, but this function is > private. Copying the code will make maintaining the code difficult. Is there > an other function easily accessible? I'm not aware of anything else (especially since it's rather trivial to construct the path), but if you want to make this method public, I don't see why we couldn't. Just file a Jira issue and it might be public in the next release. Until then, copy getFile() or write your own substitute. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

