jetbrains.buildServer.serverSide.artifacts
Interface BuildArtifact

All Superinterfaces:
BuildArtifactInfo

public interface BuildArtifact
extends BuildArtifactInfo

Represents build artifact file

Since:
6.5
Author:
Eugene Petrenko (eugene.petrenko@gmail.com)

Method Summary
 java.util.Collection<BuildArtifact> getChildren()
          returns sub items of the artifact.
 java.io.InputStream getInputStream()
          Creates imput stream for this artifact.
 long getSize()
          Computes artifact size.
 long getTimestamp()
           
 boolean isDirectory()
           
 
Methods inherited from interface jetbrains.buildServer.serverSide.artifacts.BuildArtifactInfo
getName, getRelativePath
 

Method Detail

isDirectory

boolean isDirectory()
Returns:
true if this artifact represents a directory
Since:
6.5

getSize

long getSize()
Computes artifact size. This method is not recursive.

Returns:
artifact size for file or 0 otherwise
Since:
6.5

getTimestamp

long getTimestamp()
Returns:
artifact last modification timestamp
Since:
6.5

getInputStream

@NotNull
java.io.InputStream getInputStream()
                                   throws java.io.IOException
Creates imput stream for this artifact. Client must close the stream at end Exception will be thrown if artifact does not contains content

Returns:
file content or null
Throws:
java.io.IOException
Since:
6.5

getChildren

@NotNull
java.util.Collection<BuildArtifact> getChildren()
returns sub items of the artifact.

Returns:
list of child artifacts of this artifact
Since:
6.5