Package net.sf.jnati.deploy.source
Class FileSource
- java.lang.Object
-
- net.sf.jnati.deploy.source.ArtefactSource
-
- net.sf.jnati.deploy.source.FileSource
-
public class FileSource extends ArtefactSource
- Author:
- Sam Adams
-
-
Constructor Summary
Constructors Constructor Description FileSource(java.io.File root, Artefact artefact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleancontainsFile(java.lang.String path)java.io.FilegetPath()booleanisLocal()java.io.InputStreamopenFile(java.lang.String path)-
Methods inherited from class net.sf.jnati.deploy.source.ArtefactSource
loadManifest
-
-
-
-
Constructor Detail
-
FileSource
public FileSource(java.io.File root, Artefact artefact)
-
-
Method Detail
-
openFile
public java.io.InputStream openFile(java.lang.String path) throws java.io.IOException- Specified by:
openFilein classArtefactSource- Throws:
java.io.IOException
-
containsFile
public boolean containsFile(java.lang.String path) throws java.io.IOException- Specified by:
containsFilein classArtefactSource- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein classArtefactSource- Throws:
java.io.IOException
-
isLocal
public boolean isLocal()
- Specified by:
isLocalin classArtefactSource
-
getPath
public java.io.File getPath()
- Specified by:
getPathin classArtefactSource
-
-