org.apache.cocoon.components.source.impl
Class ZipSource

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.source.impl.ZipSource
All Implemented Interfaces:
LogEnabled, Source

public class ZipSource
extends AbstractLogEnabled
implements Source

Since:
2.1.8
Version:
CVS $Id: ZipSource.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Reinhard Poetz, Carsten Ziegeler

Constructor Summary
ZipSource(String protocol, Source archive, String filePath)
           
 
Method Summary
 boolean exists()
           
 long getContentLength()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 String getMimeType()
           
 String getScheme()
           
 String getURI()
           
 SourceValidity getValidity()
           
 void refresh()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipSource

public ZipSource(String protocol,
                 Source archive,
                 String filePath)
Method Detail

exists

public boolean exists()
Specified by:
exists in interface Source

getInputStream

public InputStream getInputStream()
                           throws IOException,
                                  SourceNotFoundException
Specified by:
getInputStream in interface Source
Throws:
IOException
SourceNotFoundException

getURI

public String getURI()
Specified by:
getURI in interface Source

getScheme

public String getScheme()
Specified by:
getScheme in interface Source

getValidity

public SourceValidity getValidity()
Specified by:
getValidity in interface Source

refresh

public void refresh()
Specified by:
refresh in interface Source

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Source

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface Source

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface Source


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.