Constructor and Description |
---|
CDXUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
generateCDX(ArchiveProfile archiveProfile,
File archiveFileDirectory,
File cdxFileDirectory)
Applies createCDXRecord() to all ARC/WARC files in a directory, creating one CDX file per ARC/WARC file.
|
static void |
writeCDXInfo(File archivefile,
OutputStream cdxstream)
Add cdx info for a given archive file to a given OutputStream.
|
public CDXUtils()
public static void writeCDXInfo(File archivefile, OutputStream cdxstream)
archivefile
- A file with archive recordscdxstream
- An output stream to add CDX lines topublic static void generateCDX(ArchiveProfile archiveProfile, File archiveFileDirectory, File cdxFileDirectory) throws ArgumentNotValid
archiveProfile
- archive profile including filters, patterns, etc.archiveFileDirectory
- A directory with archive files to generate index forcdxFileDirectory
- A directory to generate CDX files inArgumentNotValid
- if any of directories are null or is not an existing directory, or if cdxFileDirectory
is not writable.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.