public class PathCat extends Application
Application.IllegalUsageException, Application.ProgressMonitorerr, monitor, out| Constructor and Description |
|---|
PathCat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Equivalent to
System.exit(new PathCat().run(args));. |
(package private) static void |
pathCat(String resource)
Copies the contents of the parameter resource to the standard output.
|
protected int |
runChecked(String[] args)
Runs this command line utility.
|
setup, sync, workrunpublic static void main(String[] args) throws FsSyncException
System.exit(new PathCat().run(args));.FsSyncExceptionprotected int runChecked(String[] args) throws IOException
ApplicationAvoid repeating this method and updating the same archive file upon each call! This would degrade the overall performance from O(n) to O(m*n), where m is the number of new or modified entries and n is the number of all entries in the archive file!
runChecked in class Applicationargs - an array of arguments for this command line utility.exit status of the VM.IOExceptionstatic void pathCat(String resource) throws IOException
resource - the path name string of the resource to copy.IOException - if accessing the resource results in an I/O error.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.