Example usage for Java org.apache.commons.vfs FileContent fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes all resources used by the content, including any open stream. |
String[] | getAttributeNames() Lists the attributes of the file's content. |
Map | getAttributes() Returns a read-only map of this file's attributes. |
Certificate[] | getCertificates() Retrieves the certificates if any used to sign this file or folder. |
FileContentInfo | getContentInfo() get the content info. |
FileObject | getFile() Returns the file which this is the content of. |
InputStream | getInputStream() Returns an input stream for reading the file's content. |
long | getLastModifiedTime() Determines the last-modified timestamp of the file. |
OutputStream | getOutputStream(boolean bAppend) Returns an output stream for writing the file's content. |
OutputStream | getOutputStream() Returns an output stream for writing the file's content. |
RandomAccessContent | getRandomAccessContent(final RandomAccessMode mode) Returns an stream for reading/writing the file's content. |
long | getSize() Determines the size of the file, in bytes. |
void | setAttribute(String attrName, Object value) Sets the value of an attribute of the file's content. |