Class SolutionRepositoryVfsFileContent
- java.lang.Object
-
- org.pentaho.platform.repository.solution.filebased.SolutionRepositoryVfsFileContent
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.commons.vfs2.FileContent
public class SolutionRepositoryVfsFileContent extends Object implements org.apache.commons.vfs2.FileContent
-
-
Constructor Summary
Constructors Constructor Description SolutionRepositoryVfsFileContent(SolutionRepositoryVfsFileObject fileObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Object
getAttribute(String arg0)
String[]
getAttributeNames()
Map
getAttributes()
Certificate[]
getCertificates()
org.apache.commons.vfs2.FileContentInfo
getContentInfo()
org.apache.commons.vfs2.FileObject
getFile()
InputStream
getInputStream()
long
getLastModifiedTime()
OutputStream
getOutputStream()
OutputStream
getOutputStream(boolean arg0)
org.apache.commons.vfs2.RandomAccessContent
getRandomAccessContent(org.apache.commons.vfs2.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)
long
write(OutputStream output)
long
write(OutputStream output, int bufferSize)
long
write(org.apache.commons.vfs2.FileContent output)
long
write(org.apache.commons.vfs2.FileObject file)
-
-
-
Constructor Detail
-
SolutionRepositoryVfsFileContent
public SolutionRepositoryVfsFileContent(SolutionRepositoryVfsFileObject fileObject)
-
-
Method Detail
-
getFile
public org.apache.commons.vfs2.FileObject getFile()
- Specified by:
getFile
in interfaceorg.apache.commons.vfs2.FileContent
-
getSize
public long getSize() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getSize
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getLastModifiedTime
public long getLastModifiedTime() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getLastModifiedTime
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
setLastModifiedTime
public void setLastModifiedTime(long arg0) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
setLastModifiedTime
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
hasAttribute
public boolean hasAttribute(String attrName)
- Specified by:
hasAttribute
in interfaceorg.apache.commons.vfs2.FileContent
-
removeAttribute
public void removeAttribute(String attrName)
- Specified by:
removeAttribute
in interfaceorg.apache.commons.vfs2.FileContent
-
getAttributes
public Map getAttributes() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getAttributes
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getAttributeNames
public String[] getAttributeNames() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getAttributeNames
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getAttribute
public Object getAttribute(String arg0) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getAttribute
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
setAttribute
public void setAttribute(String arg0, Object arg1) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
setAttribute
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getCertificates
public Certificate[] getCertificates() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getCertificates
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getInputStream
public InputStream getInputStream() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getInputStream
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getOutputStream
public OutputStream getOutputStream() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getOutputStream
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getRandomAccessContent
public org.apache.commons.vfs2.RandomAccessContent getRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode arg0) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getRandomAccessContent
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getOutputStream
public OutputStream getOutputStream(boolean arg0) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getOutputStream
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
close
public void close() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
getContentInfo
public org.apache.commons.vfs2.FileContentInfo getContentInfo() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getContentInfo
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
org.apache.commons.vfs2.FileSystemException
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceorg.apache.commons.vfs2.FileContent
-
write
public long write(org.apache.commons.vfs2.FileContent output) throws IOException
- Specified by:
write
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
IOException
-
write
public long write(org.apache.commons.vfs2.FileObject file) throws IOException
- Specified by:
write
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
IOException
-
write
public long write(OutputStream output) throws IOException
- Specified by:
write
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
IOException
-
write
public long write(OutputStream output, int bufferSize) throws IOException
- Specified by:
write
in interfaceorg.apache.commons.vfs2.FileContent
- Throws:
IOException
-
-