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  java.io.File item
           
protected  java.lang.String name
           
 
Fields inherited from class com.nirima.jenkins.repo.AbstractRepositoryElement
parent
 
Constructor Summary
protected FileRepositoryItem(RepositoryDirectory parent, java.io.File item, java.lang.String name)
           
 
Method Summary
 java.io.InputStream getContent()
           
 java.lang.String getDescription()
           
 java.lang.String getLastModified()
           
 java.lang.String getName()
           
 java.lang.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 java.lang.String name

item

protected java.io.File item
Constructor Detail

FileRepositoryItem

protected FileRepositoryItem(RepositoryDirectory parent,
                             java.io.File item,
                             java.lang.String name)
Method Detail

getName

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

getContent

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

getLastModified

public java.lang.String getLastModified()
Specified by:
getLastModified in interface RepositoryContent

getSize

public java.lang.Long getSize()
Specified by:
getSize in interface RepositoryContent

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface RepositoryContent


Copyright © 2004-2011. All Rights Reserved.