as.clynx.audio.mux.streams
Class FileIndexer

java.lang.Object
  extended by as.clynx.audio.mux.streams.FileIndexer
All Implemented Interfaces:
IIndexer

public class FileIndexer
extends java.lang.Object
implements IIndexer

The class FileIndexer.java manages the ordering in an PlayListProvider. It defines the start index according the original IAudioFileCollection for the PlayListProvider.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Constructor Summary
FileIndexer(IAudioFileCollection collection)
          Constructor
 
Method Summary
 void elementRemoved(DefaultChannelProvider set)
          markes when the first element of the list was removed
 int getRoot()
          returns the current root element.
 int next()
          returns the index followed by the last index which was returned by this instance.
 void reBuild(int rootID)
          rebuilds the indexer. starts with the defined root index.
 void reInit()
          reInits the indexer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIndexer

public FileIndexer(IAudioFileCollection collection)
Constructor

Parameters:
collection -
Method Detail

getRoot

public int getRoot()
Description copied from interface: IIndexer
returns the current root element.

Specified by:
getRoot in interface IIndexer
Returns:
the current root element.

reInit

public void reInit()
Description copied from interface: IIndexer
reInits the indexer

Specified by:
reInit in interface IIndexer

reBuild

public void reBuild(int rootID)
Description copied from interface: IIndexer
rebuilds the indexer. starts with the defined root index.

Specified by:
reBuild in interface IIndexer

next

public int next()
returns the index followed by the last index which was returned by this instance.

Specified by:
next in interface IIndexer
Returns:
the next element

elementRemoved

public void elementRemoved(DefaultChannelProvider set)
markes when the first element of the list was removed

Specified by:
elementRemoved in interface IIndexer