palmed.file
Interface IFile

All Known Implementing Classes:
File

public interface IFile

This interface defines the operations available on a file.

Version:
$Revision: 264 $ $Date: 2005-09-27 05:51:16 +0900 (mar., 27 sept. 2005) $
Author:
Mathieu Champlon

Method Summary
 boolean exists()
          Test if the file exists.
 java.io.InputStream openInputStream()
          Open an input stream.
 java.io.OutputStream openOutputStream()
          Open an output stream.
 

Method Detail

openInputStream

java.io.InputStream openInputStream()
                                    throws java.io.IOException
Open an input stream.

The stream must be closed after being used.

Returns:
the input stream
Throws:
java.io.IOException - an io exception occured

openOutputStream

java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Open an output stream.

The stream must be closed after being used.

Returns:
the output stream
Throws:
java.io.IOException - an io exception occured

exists

boolean exists()
Test if the file exists.

Returns:
whether the file exists or not


Copyright © 2004-2006 PalmEd. All Rights Reserved.