org.jdtaus.core.io
Interface StructuredFileListener

All Superinterfaces:
EventListener

public interface StructuredFileListener
extends EventListener

Listener for structural changes of s.

Version:
$Id: StructuredFileListener.java 1914 2007-03-01 02:20:44Z schulte2005 $
Author:
Christian Schulte

Method Summary
 void blocksDeleted(long index, long deletedBlocks)
          Gets called whenever blocks were deleted from the the listener is registered with.
 void blocksInserted(long index, long insertedBlocks)
          Gets called whenever blocks were inserted to the the listener is registered with.
 

Method Detail

blocksDeleted

public void blocksDeleted(long index,
                          long deletedBlocks)
                   throws IOException
Gets called whenever blocks were deleted from the the listener is registered with. The block previously at will have moved to .

Parameters:
index - the index of the first deleted block.
deletedBlocks - the number of blocks which were deleted starting at inclusive.
Throws:
IOException - if reading or writing fails.

blocksInserted

public void blocksInserted(long index,
                           long insertedBlocks)
                    throws IOException
Gets called whenever blocks were inserted to the the listener is registered with. The block previously at will have moved to .

Parameters:
index - the index of the first inserted block.
insertedBlocks - the number of blocks which were inserted at .
Throws:
IOException - if reading or writing fails.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.