Package com.android.io
Interface IAbstractFile
-
- All Superinterfaces:
IAbstractResource
- All Known Implementing Classes:
FileWrapper
public interface IAbstractFile extends IAbstractResource
A file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetContents()Returns anInputStreamobject on the file content.java.io.OutputStreamgetOutputStream()Returns anOutputStreamto write into the file.voidsetContents(java.io.InputStream source)Sets the content of the file.-
Methods inherited from interface com.android.io.IAbstractResource
exists, getOsLocation
-
-
-
-
Method Detail
-
getContents
java.io.InputStream getContents() throws StreamExceptionReturns anInputStreamobject on the file content. The stream must be closed by the caller.- Throws:
StreamException
-
setContents
void setContents(java.io.InputStream source) throws StreamExceptionSets the content of the file.- Parameters:
source- the content- Throws:
StreamException
-
getOutputStream
java.io.OutputStream getOutputStream() throws StreamExceptionReturns anOutputStreamto write into the file.- Throws:
StreamException
-
-