1 16 package org.apache.commons.vfs; 17 18 import org.apache.commons.vfs.util.RandomAccessMode; 19 20 import java.io.InputStream ; 21 import java.io.OutputStream ; 22 import java.security.cert.Certificate ; 23 import java.util.Map ; 24 25 41 public interface FileContent 42 { 43 46 FileObject getFile(); 47 48 55 long getSize() throws FileSystemException; 56 57 64 long getLastModifiedTime() throws FileSystemException; 65 66 74 void setLastModifiedTime(long modTime) throws FileSystemException; 75 76 81 Map getAttributes() throws FileSystemException; 82 83 89 String [] getAttributeNames() throws FileSystemException; 90 91 99 Object getAttribute(String attrName) throws FileSystemException; 100 101 110 void setAttribute(String attrName, Object value) 111 throws FileSystemException; 112 113 120 Certificate [] getCertificates() throws FileSystemException; 121 122 134 InputStream getInputStream() throws FileSystemException; 135 136 152 OutputStream getOutputStream() throws FileSystemException; 153 154 168 public RandomAccessContent getRandomAccessContent(final RandomAccessMode mode) throws FileSystemException; 169 170 187 OutputStream getOutputStream(boolean bAppend) throws FileSystemException; 188 189 197 void close() throws FileSystemException; 198 199 202 public FileContentInfo getContentInfo() throws FileSystemException; 203 204 207 public boolean isOpen(); 208 } 209 | Popular Tags |