Made wipeBundle() accessible to external callers, moved a protected method
into its happy place. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3042 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ResourceBundle.java,v 1.27 2004/06/19 08:09:33 mdb Exp $
|
||||
// $Id: ResourceBundle.java,v 1.28 2004/07/03 03:21:05 mdb Exp $
|
||||
|
||||
package com.threerings.resource;
|
||||
|
||||
@@ -185,27 +185,12 @@ public class ResourceBundle
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes our (possibly opened) jar file.
|
||||
*/
|
||||
protected void closeJar ()
|
||||
{
|
||||
try {
|
||||
if (_jarSource != null) {
|
||||
_jarSource.close();
|
||||
}
|
||||
} catch (Exception ioe) {
|
||||
Log.warning("Failed to close jar file [path=" + _source +
|
||||
", error=" + ioe + "].");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears out everything associated with this resource bundle in the
|
||||
* hopes that we can download it afresh and everything will work the
|
||||
* next time around.
|
||||
*/
|
||||
protected void wipeBundle ()
|
||||
public void wipeBundle ()
|
||||
{
|
||||
// clear out our cache directory
|
||||
if (_cache != null) {
|
||||
@@ -374,6 +359,21 @@ public class ResourceBundle
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes our (possibly opened) jar file.
|
||||
*/
|
||||
protected void closeJar ()
|
||||
{
|
||||
try {
|
||||
if (_jarSource != null) {
|
||||
_jarSource.close();
|
||||
}
|
||||
} catch (Exception ioe) {
|
||||
Log.warning("Failed to close jar file [path=" + _source +
|
||||
", error=" + ioe + "].");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the cache directory used for unpacked resources.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user