net.jangaroo.jooc.input
Class ZipEntryInputSource

java.lang.Object
  extended by net.jangaroo.jooc.input.ZipEntryInputSource
All Implemented Interfaces:
InputSource

public class ZipEntryInputSource
extends Object
implements InputSource


Constructor Summary
ZipEntryInputSource(ZipFileInputSource zipFileInputSource, ZipEntry zipEntry, String relativePath)
           
 
Method Summary
 void close()
           
 InputSource getChild(String path)
           
 char getFileSeparatorChar()
           
 InputStream getInputStream()
           
 String getName()
          The file name, i.e. test.as
 InputSource getParent()
           
 String getPath()
           
 String getRelativePath()
           
 boolean isDirectory()
           
 boolean isInSourcePath()
           
 List<InputSource> list()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEntryInputSource

public ZipEntryInputSource(ZipFileInputSource zipFileInputSource,
                           ZipEntry zipEntry,
                           String relativePath)
Method Detail

isInSourcePath

public boolean isInSourcePath()
Specified by:
isInSourcePath in interface InputSource

getName

public String getName()
Description copied from interface: InputSource
The file name, i.e. test.as

Specified by:
getName in interface InputSource
Returns:
the file name

getPath

public String getPath()
Specified by:
getPath in interface InputSource

getParent

public InputSource getParent()
Specified by:
getParent in interface InputSource

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface InputSource
Throws:
IOException

isDirectory

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

list

public List<InputSource> list()
Specified by:
list in interface InputSource

getChild

public InputSource getChild(String path)
Specified by:
getChild in interface InputSource

getRelativePath

public String getRelativePath()
Specified by:
getRelativePath in interface InputSource

close

public void close()
           throws IOException
Specified by:
close in interface InputSource
Throws:
IOException

getFileSeparatorChar

public char getFileSeparatorChar()
Specified by:
getFileSeparatorChar in interface InputSource


Copyright © 2002–2014 CoreMedia AG. All rights reserved.