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()
           
 InputSource getChild(String path)
           
 File getFile()
           
 char getFileSeparatorChar()
           
 InputStream getInputStream()
           
 String getName()
           
 InputSource getParent()
           
 String getPath()
           
 String getRelativePath()
           
 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()

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

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 InputSource getChild(String path)


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.