net.sf.jnati.deploy.source
Class FileSource

java.lang.Object
  extended by net.sf.jnati.deploy.source.ArtefactSource
      extended by net.sf.jnati.deploy.source.FileSource

public class FileSource
extends ArtefactSource

Author:
Sam Adams

Constructor Summary
FileSource(File root, Artefact artefact)
           
 
Method Summary
 void close()
           
 boolean containsFile(String path)
           
 File getPath()
           
 boolean isLocal()
           
 InputStream openFile(String path)
           
 
Methods inherited from class net.sf.jnati.deploy.source.ArtefactSource
loadManifest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSource

public FileSource(File root,
                  Artefact artefact)
Method Detail

openFile

public InputStream openFile(String path)
                     throws IOException
Specified by:
openFile in class ArtefactSource
Throws:
IOException

containsFile

public boolean containsFile(String path)
                     throws IOException
Specified by:
containsFile in class ArtefactSource
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in class ArtefactSource
Throws:
IOException

isLocal

public boolean isLocal()
Specified by:
isLocal in class ArtefactSource

getPath

public File getPath()
Specified by:
getPath in class ArtefactSource


Copyright © 2007-2011 Sam Adams. All Rights Reserved.