org.dspace.license
Class LicenseCleanup
java.lang.Object
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
|
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 |
templates
protected static final Templates templates
LicenseCleanup
public LicenseCleanup()
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 © 2012 DuraSpace. All Rights Reserved.