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

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.components.source.impl.ZipSource
All Implemented Interfaces:
Source

public class ZipSource
extends org.apache.cocoon.util.AbstractLogEnabled
implements Source

Since:
2.1.8
Version:
$Id: ZipSource.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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
Specified by:
getInputStream in interface Source
Throws:
IOException

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-2008 The Apache Software Foundation. All Rights Reserved.