org.apache.lenya.cms.cocoon.source
Class ZipSource

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

public class ZipSource
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.excalibur.source.Source

Since:
2.1.4
Version:
CVS $Id: ZipSource.java 30932 2004-07-29 17:35:38Z vgritsenko $
Author:
Reinhard Poetz, Carsten Ziegeler

Constructor Summary
ZipSource(org.apache.excalibur.source.Source archive, java.lang.String fileName)
          Ctor.
 
Method Summary
 boolean exists()
           
 long getContentLength()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.lang.String getMimeType()
           
 java.lang.String getScheme()
           
 java.lang.String getURI()
           
 org.apache.excalibur.source.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(org.apache.excalibur.source.Source archive,
                 java.lang.String fileName)
Ctor.

Parameters:
archive - The archive source.
fileName - The filename.
Method Detail

exists

public boolean exists()
Specified by:
exists in interface org.apache.excalibur.source.Source

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          org.apache.excalibur.source.SourceNotFoundException
Specified by:
getInputStream in interface org.apache.excalibur.source.Source
Throws:
java.io.IOException
org.apache.excalibur.source.SourceNotFoundException

getURI

public java.lang.String getURI()
Specified by:
getURI in interface org.apache.excalibur.source.Source

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface org.apache.excalibur.source.Source

getValidity

public org.apache.excalibur.source.SourceValidity getValidity()
Specified by:
getValidity in interface org.apache.excalibur.source.Source

refresh

public void refresh()
Specified by:
refresh in interface org.apache.excalibur.source.Source

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface org.apache.excalibur.source.Source

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.excalibur.source.Source

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface org.apache.excalibur.source.Source


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.