
public interface StructuredFileListener extends EventListener
StructuredFiles.| Modifier and Type | Method and Description |
|---|---|
void |
blocksDeleted(long index,
long deletedBlocks)
Gets called whenever blocks were deleted from the
StructuredFile
the listener is registered with. |
void |
blocksInserted(long index,
long insertedBlocks)
Gets called whenever blocks were inserted into the
StructuredFile
the listener is registered with. |
void blocksDeleted(long index, long deletedBlocks) throws IOException
StructuredFile
the listener is registered with. The block previously at
index + deletedBlocks will have moved to index.index - the index of the first deleted block.deletedBlocks - the number of blocks which were deleted starting
at index inclusive.IOException - if reading or writing fails.void blocksInserted(long index, long insertedBlocks) throws IOException
StructuredFile
the listener is registered with. The block previously at index
will have moved to index + insertedBlocks.index - the index of the first inserted block.insertedBlocks - the number of blocks which were inserted at
index.IOException - if reading or writing fails.Copyright © 2005-2012 jDTAUS. All Rights Reserved.