| java.lang.Object org.dspace.app.mets.METSExport
METSExport | public class METSExport (Code) | | Tool for exporting DSpace AIPs with the metadata serialised in METS format
author: Robert Tansley version: $Revision: 2174 $ |
Method Summary | |
public static void | main(String[] args) | public static void | writeAIP(Context context, Item item, String dest) Write out the AIP for the given item to the given directory. | public static void | writeMETS(Context context, Item item, OutputStream os, boolean fullURL) Write METS metadata corresponding to the metadata for an item
Parameters: context - DSpace context Parameters: item - DSpace item to create METS object for Parameters: os - A stream to write METS package to (UTF-8 encoding will be used) Parameters: fullURL - if true , the <FLocat> values for eachbitstream will be the full URL for that bitstream. |
writeAIP | public static void writeAIP(Context context, Item item, String dest) throws SQLException, IOException, AuthorizeException, MetsException(Code) | | Write out the AIP for the given item to the given directory. A new
directory will be created with the Handle (URL-encoded) as the directory
name, and inside, a mets.xml file written, together with the bitstreams.
Parameters: context - DSpace context to use Parameters: item - Item to write Parameters: dest - destination directory |
writeMETS | public static void writeMETS(Context context, Item item, OutputStream os, boolean fullURL) throws SQLException, IOException, AuthorizeException(Code) | | Write METS metadata corresponding to the metadata for an item
Parameters: context - DSpace context Parameters: item - DSpace item to create METS object for Parameters: os - A stream to write METS package to (UTF-8 encoding will be used) Parameters: fullURL - if true , the <FLocat> values for eachbitstream will be the full URL for that bitstream. Otherwise,only the filename itself will be used. |
|
|