mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 18:34:03 +00:00
Cleanup/consolidation/expansion of *Utils classes
* IoUtils.java
remove class that confusingly-overlaps with commons IOUtils; move remaining methods to ArchiveUtils or archive's FileUtils
* ArchiveUtils.java, FileUtils.java
receive relocated methods; eliminated deprecated or unused methods
* JSONUtils.java
new class to collect common JSON actions
* Iteratorable.java
wrap Iterator as Iterable for foreach usage
* (many)
update to use alternate utils methods
This commit is contained in:
1 parent
300ce15a06
commit
e42e2ed7f6
21 files changed
+314
-601
No files matched your search
@@ -35,7 +35,7 @@ import java.util.logging.Logger;
|
||||
import java.util.zip.GZIPOutputStream;
|
||||
|
||||
import org.archive.util.ArchiveUtils;
|
||||
import org.archive.util.IoUtils;
|
||||
import org.archive.util.FileUtils;
|
||||
import org.archive.util.TimestampSerialno;
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ public abstract class WriterPoolMember implements ArchiveFileConstants {
|
||||
}
|
||||
|
||||
try {
|
||||
IoUtils.ensureWriteableDirectory(d);
|
||||
FileUtils.ensureWriteableDirectory(d);
|
||||
} catch(IOException e) {
|
||||
logger.warning("Directory " + d.getPath() + " is not" +
|
||||
" writeable or cannot be created: " + e.getMessage());
|
||||
|
||||
Reference in new issue
Block a user