All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jwat.warc.WarcFileNaming Maven / Gradle / Ivy

Go to download

Used for reading, writing and validating WARC files. Implemented to follow the WARC/1.0 ISO specification as closely as possible.

There is a newer version: 1.2.1
Show newest version
/**
 * Java Web Archive Toolkit - Software to read and validate ARC, WARC
 * and GZip files. (http://jwat.org/)
 * Copyright 2011-2012 Netarkivet.dk (http://netarkivet.dk/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jwat.warc;

/**
 * Implementations of this interface are used to name the WARC files written by the WarcFileWriter.
 *
 * @author nicl
 */
public interface WarcFileNaming {

    /**
     * Does this naming implementation support multiple files.
     * @return boolean indicating support for multiple files
     */
    public boolean supportMultipleFiles();

    /**
     * Return the next file name to use.
     * @param sequenceNr sequence number to use
     * @param bCompressed is the file compressed or not
     * @return the next file name to use
     */
    public String getFilename(int sequenceNr, boolean bCompressed);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy