Package net.jangaroo.jooc.input
Class FileInputSource
- java.lang.Object
-
- net.jangaroo.jooc.input.DirectoryInputSource
-
- net.jangaroo.jooc.input.FileInputSource
-
- All Implemented Interfaces:
InputSource
public class FileInputSource extends DirectoryInputSource
-
-
Constructor Summary
Constructors Constructor Description FileInputSource(File file, boolean inSourcePath)FileInputSource(File file, boolean inSourcePath, boolean inCompilePath)FileInputSource(File sourceDir, File file, boolean inSourcePath, boolean inCompilePath, String extNamespace)FileInputSource(File sourceDir, File file, boolean inSourcePath, String extNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)FileInputSourcegetChild(String path)List<InputSource>getChildren(String path)FilegetFile()chargetFileSeparatorChar()InputStreamgetInputStream()StringgetName()The file name, i.e.InputSourcegetParent()StringgetPath()StringgetRelativePath()FilegetSourceDir()inthashCode()booleanisDirectory()List<InputSource>list()StringtoString()-
Methods inherited from class net.jangaroo.jooc.input.DirectoryInputSource
getExtNamespace, isInCompilePath, isInSourcePath
-
-
-
-
Constructor Detail
-
FileInputSource
public FileInputSource(File sourceDir, File file, boolean inSourcePath, boolean inCompilePath, String extNamespace)
-
FileInputSource
public FileInputSource(File file, boolean inSourcePath, boolean inCompilePath)
-
FileInputSource
public FileInputSource(File sourceDir, File file, boolean inSourcePath, String extNamespace)
-
FileInputSource
public FileInputSource(File file, boolean inSourcePath)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:InputSourceThe file name, i.e. test.as- Returns:
- the file name
-
getPath
public String getPath()
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceInputSource- Overrides:
getInputStreamin classDirectoryInputSource- Throws:
IOException
-
getRelativePath
public String getRelativePath()
-
close
public void close()
- Specified by:
closein interfaceInputSource- Overrides:
closein classDirectoryInputSource
-
getFile
public File getFile()
-
getSourceDir
public File getSourceDir()
-
getFileSeparatorChar
public char getFileSeparatorChar()
-
getParent
public InputSource getParent()
- Specified by:
getParentin interfaceInputSource- Overrides:
getParentin classDirectoryInputSource
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceInputSource- Overrides:
isDirectoryin classDirectoryInputSource
-
list
public List<InputSource> list()
-
getChild
public FileInputSource getChild(String path)
-
getChildren
public List<InputSource> getChildren(String path)
-
-