net.jangaroo.jooc.input
Class FileInputSource

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

public class FileInputSource
extends DirectoryInputSource


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

Constructor Detail

FileInputSource

public FileInputSource(File sourceDir,
                       File file)

FileInputSource

public FileInputSource(File file)
Method Detail

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()

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.