palmed.buffer
Interface IBuffer

All Superinterfaces:
ISerializable
All Known Subinterfaces:
IRecordBuffer
All Known Implementing Classes:
Buffer, RecordBuffer

public interface IBuffer
extends ISerializable

This interface defines the operations available on a buffer.

Version:
$Revision: 353 $ $Date: 2005-12-21 23:29:33 +0900 (mer., 21 déc. 2005) $
Author:
Mathieu Champlon

Method Summary
 void delete()
          Delete the buffer.
 boolean hasBeenModified()
          Test if the buffer has been modified.
 boolean hasFile(IFile file)
          Test if the given file is handled by the buffer.
 void open(IFile file)
          Open the given file.
 boolean save()
          Save the file.
 void save(IFile file)
          Save into the given file.
 
Methods inherited from interface palmed.io.ISerializable
marshall, unmarshall
 

Method Detail

open

void open(IFile file)
Open the given file.

Parameters:
file - the file to read from

save

boolean save()
Save the file.

This operation must fail if no file is associated to the buffer.

Returns:
whether the file could be saved or not

save

void save(IFile file)
Save into the given file.

Parameters:
file - the file to write into

hasBeenModified

boolean hasBeenModified()
Test if the buffer has been modified.

Returns:
whether the buffer has been modified or not

hasFile

boolean hasFile(IFile file)
Test if the given file is handled by the buffer.

Parameters:
file - the file
Returns:
whether the buffer handles the file or not

delete

void delete()
Delete the buffer.



Copyright © 2004-2006 PalmEd. All Rights Reserved.