org.repoweb.model.jar
Class JArtifact

java.lang.Object
  extended byorg.repoweb.model.common.AbstractArtifact
      extended byorg.repoweb.model.jar.JArtifact
All Implemented Interfaces:
Artifact, ArtifactInfo

class JArtifact
extends AbstractArtifact

Artifact implementation for repository located into jar.


Nested Class Summary
 
Nested classes inherited from class org.repoweb.model.common.AbstractArtifact
AbstractArtifact.BadArtifactFileException
 
Constructor Summary
(package private) JArtifact(java.net.URL url)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Returns an input stream on this artifact.
 long getLength()
          Retrieve the artifact length.
 Artifact getPom()
          Retrieve the Project Object Model for this artifact.
 
Methods inherited from class org.repoweb.model.common.AbstractArtifact
getArtifactId, getFile, getFileName, getGroupId, getId, getType, getVersion, isOverridden, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JArtifact

JArtifact(java.net.URL url)
    throws AbstractArtifact.BadArtifactFileException
Method Detail

getPom

public Artifact getPom()
Description copied from interface: Artifact
Retrieve the Project Object Model for this artifact.

Returns:
POM artifact (e.g. 'junit-3.8.1.pom')

getLength

public long getLength()
Description copied from interface: Artifact
Retrieve the artifact length.

Returns:
length in byte.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: Artifact
Returns an input stream on this artifact.

Returns:
an input stream.
Throws:
java.io.IOException - read error.


Copyright © 2003-2005 Repoweb. All Rights Reserved.