public class WarcFileNamingDefault extends Object implements WarcFileNaming
| Modifier and Type | Field and Description |
|---|---|
protected Date |
date
Date component.
|
protected DateFormat |
dateFormat
DateFormat to the following format 'yyyyMMddHHmmss'. |
protected String |
dateStr
Date component converted into a human readable string.
|
protected String |
extension
Extension component (including leading ".").
|
protected String |
filePrefix
Prefix component.
|
protected String |
hostname
Host name component.
|
| Constructor and Description |
|---|
WarcFileNamingDefault(String filePrefix,
Date date,
String hostname,
String extension)
Construct file naming instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename(int sequenceNr,
boolean bCompressed)
Return the next file name to use.
|
boolean |
supportMultipleFiles()
Does this naming implementation support multiple files.
|
protected DateFormat dateFormat
DateFormat to the following format 'yyyyMMddHHmmss'.protected String filePrefix
public WarcFileNamingDefault(String filePrefix, Date date, String hostname, String extension)
filePrefix - prefix or null, will default to "JWAT"date - date or null, if you want current datehostname - host name or null, if you want to use default local host nameextension - extension or null, will default to ".warc"public boolean supportMultipleFiles()
WarcFileNamingsupportMultipleFiles in interface WarcFileNamingpublic String getFilename(int sequenceNr, boolean bCompressed)
WarcFileNaminggetFilename in interface WarcFileNamingsequenceNr - sequence number to usebCompressed - is the file compressed or notCopyright © 2011–2015. All rights reserved.