org.repoweb.model.file
Class FArtifact

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

class FArtifact
extends AbstractArtifact

Implementation of an artifact for file system.


Nested Class Summary
 
Nested classes inherited from class org.repoweb.model.common.AbstractArtifact
AbstractArtifact.BadArtifactFileException
 
Constructor Summary
(package private) FArtifact(java.io.File file)
           
 
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.
(package private)  void setPom(Artifact pom)
           
 
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

FArtifact

FArtifact(java.io.File file)
    throws AbstractArtifact.BadArtifactFileException
Method Detail

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.FileNotFoundException
Description copied from interface: Artifact
Returns an input stream on this artifact.

Returns:
an input stream.
Throws:
java.io.FileNotFoundException

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')

setPom

void setPom(Artifact pom)


Copyright © 2003-2005 Repoweb. All Rights Reserved.