net.sf.jnati.deploy.source
Class JarSource

java.lang.Object
  extended by net.sf.jnati.deploy.source.ArtefactSource
      extended by net.sf.jnati.deploy.source.JarSource
Direct Known Subclasses:
TempJarSource

public class JarSource
extends ArtefactSource

Author:
Sam Adams

Constructor Summary
JarSource(File file, Artefact artefact)
           
JarSource(JarFile jar, 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

JarSource

public JarSource(JarFile jar,
                 Artefact artefact)

JarSource

public JarSource(File file,
                 Artefact artefact)
          throws IOException
Throws:
IOException
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.