Package net.jangaroo.jooc.input
Class ZipEntryInputSource
- java.lang.Object
-
- net.jangaroo.jooc.input.ZipEntryInputSource
-
- All Implemented Interfaces:
InputSource
public class ZipEntryInputSource extends Object implements InputSource
-
-
Constructor Summary
Constructors Constructor Description ZipEntryInputSource(ZipFileInputSource zipFileInputSource, ZipEntry zipEntry, String relativePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)InputSourcegetChild(String path)List<InputSource>getChildren(String path)StringgetExtNamespace()chargetFileSeparatorChar()InputStreamgetInputStream()StringgetName()The file name, i.e.InputSourcegetParent()StringgetPath()StringgetRelativePath()ZipFileInputSourcegetZipFileInputSource()inthashCode()booleanisDirectory()booleanisInCompilePath()booleanisInSourcePath()List<InputSource>list()StringtoString()
-
-
-
Constructor Detail
-
ZipEntryInputSource
public ZipEntryInputSource(ZipFileInputSource zipFileInputSource, ZipEntry zipEntry, String relativePath)
-
-
Method Detail
-
getZipFileInputSource
public ZipFileInputSource getZipFileInputSource()
-
getExtNamespace
public String getExtNamespace()
- Specified by:
getExtNamespacein interfaceInputSource
-
isInSourcePath
public boolean isInSourcePath()
- Specified by:
isInSourcePathin interfaceInputSource
-
isInCompilePath
public boolean isInCompilePath()
- Specified by:
isInCompilePathin interfaceInputSource
-
getName
public String getName()
Description copied from interface:InputSourceThe file name, i.e. test.as- Specified by:
getNamein interfaceInputSource- Returns:
- the file name
-
getPath
public String getPath()
- Specified by:
getPathin interfaceInputSource
-
getParent
public InputSource getParent()
- Specified by:
getParentin interfaceInputSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceInputSource- Throws:
IOException
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceInputSource
-
list
public List<InputSource> list()
- Specified by:
listin interfaceInputSource
-
getChild
public InputSource getChild(String path)
- Specified by:
getChildin interfaceInputSource
-
getChildren
public List<InputSource> getChildren(String path)
- Specified by:
getChildrenin interfaceInputSource
-
getRelativePath
public String getRelativePath()
- Specified by:
getRelativePathin interfaceInputSource
-
close
public void close() throws IOException- Specified by:
closein interfaceInputSource- Throws:
IOException
-
getFileSeparatorChar
public char getFileSeparatorChar()
- Specified by:
getFileSeparatorCharin interfaceInputSource
-
-