com.nirima.jenkins.repo.fs
Class FileRepositoryItem

java.lang.Object
  extended by com.nirima.jenkins.repo.AbstractRepositoryElement
      extended by com.nirima.jenkins.repo.fs.FileRepositoryItem
All Implemented Interfaces:
RepositoryContent, RepositoryElement

public class FileRepositoryItem
extends AbstractRepositoryElement
implements RepositoryContent


Field Summary
protected  File item
           
protected  String name
           
 
Fields inherited from class com.nirima.jenkins.repo.AbstractRepositoryElement
parent
 
Constructor Summary
protected FileRepositoryItem(RepositoryDirectory parent, File item, String name)
           
 
Method Summary
 InputStream getContent()
           
 String getDescription()
           
 String getLastModified()
           
 String getName()
           
 Long getSize()
           
 
Methods inherited from class com.nirima.jenkins.repo.AbstractRepositoryElement
getParent, getPath, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.nirima.jenkins.repo.RepositoryElement
getParent, getPath, setParent
 

Field Detail

name

protected String name

item

protected File item
Constructor Detail

FileRepositoryItem

protected FileRepositoryItem(RepositoryDirectory parent,
                             File item,
                             String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface RepositoryElement
Specified by:
getName in class AbstractRepositoryElement

getContent

public InputStream getContent()
                       throws FileNotFoundException
Specified by:
getContent in interface RepositoryContent
Throws:
FileNotFoundException

getLastModified

public String getLastModified()
Specified by:
getLastModified in interface RepositoryContent

getSize

public Long getSize()
Specified by:
getSize in interface RepositoryContent

getDescription

public String getDescription()
Specified by:
getDescription in interface RepositoryContent


Copyright © 2004-2011. All Rights Reserved.