net.sf.jnati.deploy.source
Class UrlSource

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

public class UrlSource
extends ArtefactSource

Author:
Sam Adams

Constructor Summary
UrlSource(URL url, Artefact artefact, String artefactPath)
           
 
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

UrlSource

public UrlSource(URL url,
                 Artefact artefact,
                 String artefactPath)
Method Detail

openFile

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

close

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

containsFile

public boolean containsFile(String path)
                     throws IOException
Specified by:
containsFile 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.