de.unkrig.commons.file.org.apache.commons.compress.archivers.dump
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by de.unkrig.commons.file.org.apache.commons.compress.archivers.ArchiveURLStreamHandler
          extended by de.unkrig.commons.file.org.apache.commons.compress.archivers.dump.Handler

public class Handler
extends ArchiveURLStreamHandler

A URLStreamHandler for the protocol "dump".

The path component is interpreted as follows:

container-url!entry-name

The contents of the container must be in the DUMP archive format.

This handler is registered by ArchiveFormatFactory.


Constructor Summary
Handler()
           
 
Method Summary
protected  org.apache.commons.compress.archivers.ArchiveInputStream open(java.io.InputStream containerInputStream)
          Opens the given container, finds the entry with the given entryName and returns an InputStream that reads from it.
 
Methods inherited from class de.unkrig.commons.file.org.apache.commons.compress.archivers.ArchiveURLStreamHandler
openConnection
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

open

protected org.apache.commons.compress.archivers.ArchiveInputStream open(java.io.InputStream containerInputStream)
                                                                 throws org.apache.commons.compress.archivers.ArchiveException
Description copied from class: ArchiveURLStreamHandler
Opens the given container, finds the entry with the given entryName and returns an InputStream that reads from it.

Specified by:
open in class ArchiveURLStreamHandler
Throws:
org.apache.commons.compress.archivers.ArchiveException