com.android.io
Interface IAbstractFile

All Superinterfaces:
IAbstractResource
All Known Implementing Classes:
FileWrapper

public interface IAbstractFile
extends IAbstractResource

A file.


Nested Class Summary
static class IAbstractFile.PreferredWriteMode
           
 
Method Summary
 java.io.InputStream getContents()
          Returns an InputStream object on the file content.
 long getModificationStamp()
          Returns the last modification timestamp
 java.io.OutputStream getOutputStream()
          Returns an OutputStream to write into the file.
 IAbstractFile.PreferredWriteMode getPreferredWriteMode()
          Returns the preferred mode to write into the file.
 void setContents(java.io.InputStream source)
          Sets the content of the file.
 
Methods inherited from interface com.android.io.IAbstractResource
delete, exists, getName, getOsLocation, getParentFolder
 

Method Detail

getContents

java.io.InputStream getContents()
                                throws StreamException
Returns an InputStream object on the file content.

Throws:
StreamException

setContents

void setContents(java.io.InputStream source)
                 throws StreamException
Sets the content of the file.

Parameters:
source - the content
Throws:
StreamException

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws StreamException
Returns an OutputStream to write into the file.

Throws:
StreamException

getPreferredWriteMode

IAbstractFile.PreferredWriteMode getPreferredWriteMode()
Returns the preferred mode to write into the file.


getModificationStamp

long getModificationStamp()
Returns the last modification timestamp