public class DecoratedFileContent extends Object implements org.apache.commons.vfs2.FileContent
Constructor and Description |
---|
DecoratedFileContent(org.apache.commons.vfs2.FileContent fileContent) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Object |
getAttribute(String s) |
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 b) |
org.apache.commons.vfs2.RandomAccessContent |
getRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode randomAccessMode) |
long |
getSize() |
boolean |
hasAttribute(String s) |
boolean |
isOpen() |
void |
removeAttribute(String s) |
void |
setAttribute(String s,
Object o) |
void |
setLastModifiedTime(long l) |
long |
write(org.apache.commons.vfs2.FileContent fileContent) |
long |
write(org.apache.commons.vfs2.FileObject fileObject) |
long |
write(OutputStream outputStream) |
long |
write(OutputStream outputStream,
int i) |
public DecoratedFileContent(org.apache.commons.vfs2.FileContent fileContent)
public org.apache.commons.vfs2.FileObject getFile()
getFile
in interface org.apache.commons.vfs2.FileContent
public long getSize() throws org.apache.commons.vfs2.FileSystemException
getSize
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public long getLastModifiedTime() throws org.apache.commons.vfs2.FileSystemException
getLastModifiedTime
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public void setLastModifiedTime(long l) throws org.apache.commons.vfs2.FileSystemException
setLastModifiedTime
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public boolean hasAttribute(String s) throws org.apache.commons.vfs2.FileSystemException
hasAttribute
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public Map getAttributes() throws org.apache.commons.vfs2.FileSystemException
getAttributes
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public String[] getAttributeNames() throws org.apache.commons.vfs2.FileSystemException
getAttributeNames
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public Object getAttribute(String s) throws org.apache.commons.vfs2.FileSystemException
getAttribute
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public void setAttribute(String s, Object o) throws org.apache.commons.vfs2.FileSystemException
setAttribute
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public void removeAttribute(String s) throws org.apache.commons.vfs2.FileSystemException
removeAttribute
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public Certificate[] getCertificates() throws org.apache.commons.vfs2.FileSystemException
getCertificates
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public InputStream getInputStream() throws org.apache.commons.vfs2.FileSystemException
getInputStream
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public OutputStream getOutputStream() throws org.apache.commons.vfs2.FileSystemException
getOutputStream
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.RandomAccessContent getRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode randomAccessMode) throws org.apache.commons.vfs2.FileSystemException
getRandomAccessContent
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public OutputStream getOutputStream(boolean b) throws org.apache.commons.vfs2.FileSystemException
getOutputStream
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public void close() throws org.apache.commons.vfs2.FileSystemException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.FileContentInfo getContentInfo() throws org.apache.commons.vfs2.FileSystemException
getContentInfo
in interface org.apache.commons.vfs2.FileContent
org.apache.commons.vfs2.FileSystemException
public boolean isOpen()
isOpen
in interface org.apache.commons.vfs2.FileContent
public long write(org.apache.commons.vfs2.FileContent fileContent) throws IOException
write
in interface org.apache.commons.vfs2.FileContent
IOException
public long write(org.apache.commons.vfs2.FileObject fileObject) throws IOException
write
in interface org.apache.commons.vfs2.FileContent
IOException
public long write(OutputStream outputStream) throws IOException
write
in interface org.apache.commons.vfs2.FileContent
IOException
public long write(OutputStream outputStream, int i) throws IOException
write
in interface org.apache.commons.vfs2.FileContent
IOException
Copyright © 2017 Hitachi Vantara. All rights reserved.