public class FileList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileList.Args |
Modifier and Type | Field and Description |
---|---|
(package private) FileList.Args |
args |
(package private) java.util.zip.CRC32 |
crcCalculator |
(package private) java.text.SimpleDateFormat |
date_Format
The data format is ISO 8601 but without 'T' as separator between date and time, a space is better readable.
|
(package private) java.text.SimpleDateFormat |
dateFormat
The data format is ISO 8601 but without 'T' as separator between date and time, a space is better readable.
|
(package private) StringFormatter |
formatter |
(package private) java.lang.String |
spaces |
static java.lang.String |
sVersion
Version, history and license.
|
Constructor and Description |
---|
FileList(FileList.Args args) |
Modifier and Type | Method and Description |
---|---|
protected void |
list()
Creates a list of all files which's path and mask is given by
args . |
protected void |
list(java.io.File dir,
FilepathFilterM filter,
int posLocalPath,
java.lang.CharSequence localDir,
java.io.Writer out,
int recurs)
Creates a list of all files which's path and mask is given by
args . |
static void |
list(java.lang.String dir,
java.lang.String mask,
java.lang.String sFilelist)
Static method to create a list from any directory maybe with selected files.
|
static void |
main(java.lang.String[] sArgs) |
static java.lang.String |
smain(java.lang.String[] sArgs)
Invocation from another java program without exit the JVM
|
private static java.lang.String |
smain(java.lang.String[] sArgs,
boolean shouldExitVM) |
void |
touch() |
void |
touch(java.lang.String sFile) |
static void |
touch(java.lang.String dir,
java.lang.String sFilelist,
java.lang.Appendable out)
Static method to touch all files form a given list.
|
static void |
touch(java.lang.String dir,
java.lang.String sFilelist,
java.lang.String sFile,
java.lang.Appendable out)
Static method to touch all files form a given list.
|
private java.lang.String |
touchOneLine(java.lang.String sLine,
java.io.File dir,
java.lang.String sDirlocal,
java.lang.String sFile) |
private void |
writeDirectoryLine(java.io.Writer out,
java.io.File file,
java.lang.CharSequence localDir,
java.lang.String name) |
private void |
writeOneFile(java.io.Writer out,
java.io.File file,
java.lang.CharSequence localDir,
java.lang.String name) |
protected void |
xxxlist()
Creates a list of all files which's path and mask is given by
args . |
private void |
xxxwriteOneFile(java.io.Writer out,
java.io.File file,
java.lang.CharSequence localPath) |
public static final java.lang.String sVersion
final FileList.Args args
final java.text.SimpleDateFormat dateFormat
final java.text.SimpleDateFormat date_Format
final StringFormatter formatter
final java.util.zip.CRC32 crcCalculator
java.lang.String spaces
public FileList(FileList.Args args)
public static void list(java.lang.String dir, java.lang.String mask, java.lang.String sFilelist) throws java.io.IOException
dir
- path to any directory.mask
- Use "*" to select all files.sFilelist
- Name of the file list relative to the dir, can contain a relative path.java.io.IOException
protected void xxxlist() throws java.io.IOException
args
.java.io.IOException
protected void list() throws java.io.IOException
args
.java.io.IOException
protected void list(java.io.File dir, FilepathFilterM filter, int posLocalPath, java.lang.CharSequence localDir, java.io.Writer out, int recurs) throws java.io.IOException
args
.java.io.IOException
private void writeOneFile(java.io.Writer out, java.io.File file, java.lang.CharSequence localDir, java.lang.String name) throws java.io.IOException
java.io.IOException
private void writeDirectoryLine(java.io.Writer out, java.io.File file, java.lang.CharSequence localDir, java.lang.String name) throws java.io.IOException
java.io.IOException
private void xxxwriteOneFile(java.io.Writer out, java.io.File file, java.lang.CharSequence localPath) throws java.io.IOException
java.io.IOException
public static void touch(java.lang.String dir, java.lang.String sFilelist, java.lang.String sFile, java.lang.Appendable out) throws java.io.IOException
dir
- path to any directory.mask
- Use "*" to select all files.sFile
- file with local path, if given only that file will be touched, null: all files to touch.sFilelist
- Name of the file list relative to the dir, can contain a relative path.java.io.IOException
public static void touch(java.lang.String dir, java.lang.String sFilelist, java.lang.Appendable out) throws java.io.IOException
dir
- path to any directory.mask
- Use "*" to select all files.sFilelist
- Name of the file list relative to the dir, can contain a relative path.java.io.IOException
public void touch()
public void touch(java.lang.String sFile)
private java.lang.String touchOneLine(java.lang.String sLine, java.io.File dir, java.lang.String sDirlocal, java.lang.String sFile)
public static void main(java.lang.String[] sArgs)
public static java.lang.String smain(java.lang.String[] sArgs)
sArgs
- same like main(String[])
private static java.lang.String smain(java.lang.String[] sArgs, boolean shouldExitVM)