org.pentaho.platform.repository.solution.filebased
Class SolutionRepositoryVfsFileContent

java.lang.Object
  extended by org.pentaho.platform.repository.solution.filebased.SolutionRepositoryVfsFileContent
All Implemented Interfaces:
org.apache.commons.vfs.FileContent

public class SolutionRepositoryVfsFileContent
extends Object
implements org.apache.commons.vfs.FileContent


Constructor Summary
SolutionRepositoryVfsFileContent(SolutionRepositoryVfsFileObject fileObject)
           
 
Method Summary
 void close()
           
 Object getAttribute(String arg0)
           
 String[] getAttributeNames()
           
 Map getAttributes()
           
 Certificate[] getCertificates()
           
 org.apache.commons.vfs.FileContentInfo getContentInfo()
           
 org.apache.commons.vfs.FileObject getFile()
           
 InputStream getInputStream()
           
 long getLastModifiedTime()
           
 OutputStream getOutputStream()
           
 OutputStream getOutputStream(boolean arg0)
           
 org.apache.commons.vfs.RandomAccessContent getRandomAccessContent(org.apache.commons.vfs.util.RandomAccessMode arg0)
           
 long getSize()
           
 boolean hasAttribute(String attrName)
           
 boolean isOpen()
           
 void removeAttribute(String attrName)
           
 void setAttribute(String arg0, Object arg1)
           
 void setLastModifiedTime(long arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolutionRepositoryVfsFileContent

public SolutionRepositoryVfsFileContent(SolutionRepositoryVfsFileObject fileObject)
Method Detail

getFile

public org.apache.commons.vfs.FileObject getFile()
Specified by:
getFile in interface org.apache.commons.vfs.FileContent

getSize

public long getSize()
             throws org.apache.commons.vfs.FileSystemException
Specified by:
getSize in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getLastModifiedTime

public long getLastModifiedTime()
                         throws org.apache.commons.vfs.FileSystemException
Specified by:
getLastModifiedTime in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

setLastModifiedTime

public void setLastModifiedTime(long arg0)
                         throws org.apache.commons.vfs.FileSystemException
Specified by:
setLastModifiedTime in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

hasAttribute

public boolean hasAttribute(String attrName)

removeAttribute

public void removeAttribute(String attrName)

getAttributes

public Map getAttributes()
                  throws org.apache.commons.vfs.FileSystemException
Specified by:
getAttributes in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getAttributeNames

public String[] getAttributeNames()
                           throws org.apache.commons.vfs.FileSystemException
Specified by:
getAttributeNames in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getAttribute

public Object getAttribute(String arg0)
                    throws org.apache.commons.vfs.FileSystemException
Specified by:
getAttribute in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

setAttribute

public void setAttribute(String arg0,
                         Object arg1)
                  throws org.apache.commons.vfs.FileSystemException
Specified by:
setAttribute in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getCertificates

public Certificate[] getCertificates()
                              throws org.apache.commons.vfs.FileSystemException
Specified by:
getCertificates in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getInputStream

public InputStream getInputStream()
                           throws org.apache.commons.vfs.FileSystemException
Specified by:
getInputStream in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getOutputStream

public OutputStream getOutputStream()
                             throws org.apache.commons.vfs.FileSystemException
Specified by:
getOutputStream in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getRandomAccessContent

public org.apache.commons.vfs.RandomAccessContent getRandomAccessContent(org.apache.commons.vfs.util.RandomAccessMode arg0)
                                                                  throws org.apache.commons.vfs.FileSystemException
Specified by:
getRandomAccessContent in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getOutputStream

public OutputStream getOutputStream(boolean arg0)
                             throws org.apache.commons.vfs.FileSystemException
Specified by:
getOutputStream in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

close

public void close()
           throws org.apache.commons.vfs.FileSystemException
Specified by:
close in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

getContentInfo

public org.apache.commons.vfs.FileContentInfo getContentInfo()
                                                      throws org.apache.commons.vfs.FileSystemException
Specified by:
getContentInfo in interface org.apache.commons.vfs.FileContent
Throws:
org.apache.commons.vfs.FileSystemException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface org.apache.commons.vfs.FileContent