org.rhq.helpers.perftest.support.input
Class ZipInputStreamProviderDecorator

java.lang.Object
  extended by org.rhq.helpers.perftest.support.input.ZipInputStreamProviderDecorator
All Implemented Interfaces:
InputStreamProvider

public class ZipInputStreamProviderDecorator
extends Object
implements InputStreamProvider

This is a wrapper around another InputStreamProvider that returns a ZipInputStream wrapped around the stream provided by the decorated provider.

Author:
Lukas Krejci

Constructor Summary
ZipInputStreamProviderDecorator(InputStreamProvider inner, boolean openEntry)
           
 
Method Summary
 ZipInputStream createInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipInputStreamProviderDecorator

public ZipInputStreamProviderDecorator(InputStreamProvider inner,
                                       boolean openEntry)
Method Detail

createInputStream

public ZipInputStream createInputStream()
                                 throws IOException
Specified by:
createInputStream in interface InputStreamProvider
Returns:
a new input stream corresponding to the same underlying "resource" (e.g. file, URL, ...) each time.
Throws:
IOException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.