TrueZIP Samples 7.1

de.schlichtherle.truezip.sample.kernel.app
Class Cat

java.lang.Object
  extended by de.schlichtherle.truezip.sample.kernel.app.Cat

public final class Cat
extends Object

A poor man's blend of the cat(1) and wget(1) command line utility for concatenating the contents of the parameter URIs on the standard output. This version can address any URI scheme which is supported by a file system driver which is available on the run-time class path.

Author:
Christian Schlichtherle
See Also:
GNU Cat - Home Page

Constructor Summary
Cat()
           
 
Method Summary
(package private) static void cat(String resource)
          Copies the contents of the parameter resource to the standard output.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cat

public Cat()
Method Detail

main

public static void main(String[] args)
                 throws IOException,
                        URISyntaxException
Throws:
IOException
URISyntaxException

cat

static void cat(String resource)
         throws IOException,
                URISyntaxException
Copies the contents of the parameter resource to the standard output.

Parameters:
resource - the URI string of the resource to copy.
Throws:
IOException - if accessing the resource results in an I/O error.
IllegalArgumentException - if resource does not conform to the syntax constraints for URIs.
URISyntaxException

TrueZIP Samples 7.1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.