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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInputSource
public FileInputSource(File sourceDir,
File file,
boolean inSourcePath)
FileInputSource
public FileInputSource(File file,
boolean inSourcePath)
getName
public String getName()
- Description copied from interface:
InputSource
- The file name, i.e. test.as
- Returns:
- the file name
getPath
public String getPath()
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface InputSource- Overrides:
getInputStream in class DirectoryInputSource
- Throws:
IOException
getRelativePath
public String getRelativePath()
isInSourcePath
public boolean isInSourcePath()
close
public void close()
- Specified by:
close in interface InputSource- Overrides:
close in class DirectoryInputSource
getFile
public File getFile()
getSourceDir
public File getSourceDir()
getFileSeparatorChar
public char getFileSeparatorChar()
getParent
public InputSource getParent()
- Specified by:
getParent in interface InputSource- Overrides:
getParent in class DirectoryInputSource
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface InputSource- Overrides:
isDirectory in class DirectoryInputSource
list
public List<InputSource> list()
getChild
public FileInputSource getChild(String path)
Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.