public class UriCat extends Application
file.Application.IllegalUsageException, Application.ProgressMonitorerr, monitor, out| Constructor and Description |
|---|
UriCat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Equivalent to
System.exit(new CatPath().run(args));. |
protected int |
runChecked(String[] args)
Runs this command line utility.
|
(package private) static void |
uriCat(String resource)
Copies the contents of the parameter resource to the standard output.
|
setup, sync, workrunpublic static void main(String[] args) throws FsSyncException
System.exit(new CatPath().run(args));.FsSyncExceptionprotected int runChecked(String[] args) throws IOException, URISyntaxException
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.IOExceptionURISyntaxExceptionstatic void uriCat(String resource) throws IOException, URISyntaxException
resource - the URI string of the resource to copy.
The URI must be file-based, i.e. the top level file system
scheme must be file.IOException - if accessing the resource results in an I/O error.URISyntaxException - if resource does not
conform to the syntax constraints for URIs.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.