org.richfaces.cdk.vfs.zip
Class ZipVFSFile

java.lang.Object
  extended by org.richfaces.cdk.vfs.zip.ZipVFSFile
All Implemented Interfaces:
VirtualFile
Direct Known Subclasses:
ZipVFSRoot

public class ZipVFSFile
extends java.lang.Object
implements VirtualFile

Author:
Nick Belaevski

Constructor Summary
ZipVFSFile(java.util.zip.ZipFile zipFile, org.richfaces.cdk.vfs.zip.ZipNode zipNode, java.lang.String relativePath)
           
 
Method Summary
 VirtualFile getChild(java.lang.String path)
           
 VirtualFile getChild(java.lang.String path, boolean chrooted)
           
 java.util.Collection<VirtualFile> getChildren()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.lang.String getRelativePath()
           
protected  java.util.zip.ZipFile getZipFile()
           
protected  org.richfaces.cdk.vfs.zip.ZipNode getZipNode()
           
 boolean isDirectory()
           
 boolean isFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipVFSFile

public ZipVFSFile(java.util.zip.ZipFile zipFile,
                  org.richfaces.cdk.vfs.zip.ZipNode zipNode,
                  java.lang.String relativePath)
Method Detail

isFile

public boolean isFile()
Specified by:
isFile in interface VirtualFile

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface VirtualFile

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface VirtualFile
Throws:
java.io.IOException

getChildren

public java.util.Collection<VirtualFile> getChildren()
Specified by:
getChildren in interface VirtualFile

getChild

public VirtualFile getChild(java.lang.String path)
Specified by:
getChild in interface VirtualFile

getChild

public VirtualFile getChild(java.lang.String path,
                            boolean chrooted)
Specified by:
getChild in interface VirtualFile

getName

public java.lang.String getName()
Specified by:
getName in interface VirtualFile

getRelativePath

public java.lang.String getRelativePath()
Specified by:
getRelativePath in interface VirtualFile

getZipFile

protected java.util.zip.ZipFile getZipFile()

getZipNode

protected org.richfaces.cdk.vfs.zip.ZipNode getZipNode()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.