wt.util
Class FileConsumer.FileConsumerQueue

java.lang.Object
  extended bywt.util.Consumer.SynchronizedQueue
      extended bywt.util.FileConsumer.FileConsumerQueue
All Implemented Interfaces:
Consumer.Queue
Enclosing class:
FileConsumer

protected static final class FileConsumer.FileConsumerQueue
extends Consumer.SynchronizedQueue

An extension of SynchronizedQueue that keeps track of the current file.


Nested Class Summary
(package private)  class FileConsumer.FileConsumerQueue.FileChange
           
 
Field Summary
private  int changeCount
           
private  String currentFile
           
private  LinkedList fileChanges
           
 
Fields inherited from class wt.util.Consumer.SynchronizedQueue
 
Constructor Summary
FileConsumer.FileConsumerQueue(int max_buffer_size)
           
 
Method Summary
 Object dequeue()
           
 void fileChange(String file_name)
           
 String getCurrentFile()
           
 
Methods inherited from class wt.util.Consumer.SynchronizedQueue
close, enqueue, finalize, hasNext, isClosed, isFinalized, size
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileChanges

private final LinkedList fileChanges

currentFile

private String currentFile

changeCount

private int changeCount
Constructor Detail

FileConsumer.FileConsumerQueue

public FileConsumer.FileConsumerQueue(int max_buffer_size)
Method Detail

dequeue

public Object dequeue()
Specified by:
dequeue in interface Consumer.Queue
Overrides:
dequeue in class Consumer.SynchronizedQueue

fileChange

public void fileChange(String file_name)

getCurrentFile

public String getCurrentFile()