org.dspace.license
Class LicenseCleanup

java.lang.Object
  extended by org.dspace.license.LicenseCleanup

public class LicenseCleanup
extends Object

Cleanup class for CC Licenses, corrects XML formating errors by replacing the license_rdf bitstream.

Author:
mdiggory

Field Summary
protected static Templates templates
           
 
Constructor Summary
LicenseCleanup()
           
 
Method Summary
static byte[] copy(Bitstream b)
          Fast stream copy routine
protected static void handleItem(Item item)
          Process Item, correcting CC-License if encountered.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templates

protected static Templates templates
Constructor Detail

LicenseCleanup

public LicenseCleanup()
Method Detail

main

public static void main(String[] args)
                 throws SQLException,
                        AuthorizeException,
                        IOException
Parameters:
args -
Throws:
SQLException
IOException
AuthorizeException

handleItem

protected static void handleItem(Item item)
                          throws SQLException,
                                 AuthorizeException,
                                 IOException
Process Item, correcting CC-License if encountered.

Parameters:
item -
Throws:
SQLException
AuthorizeException
IOException

copy

public static byte[] copy(Bitstream b)
                   throws IOException,
                          SQLException,
                          AuthorizeException
Fast stream copy routine

Parameters:
b -
Returns:
Throws:
IOException
SQLException
AuthorizeException


Copyright © 2010 DuraSpace. All Rights Reserved.