Oracle® Collaboration Suite Workspaces API Reference
10g (10.1.1.0.2)

Part No. B16233-01


oracle.workspaces.resource.discussion
Class CwMessageIterator

java.lang.Object
  extended byoracle.workspaces.resource.discussion.CwMessageIterator


public class CwMessageIterator
extends java.lang.Object

This iterator class wraps the TdMessageIterator class and passes requests through. The TdMessageIterator provides caching and bulk "gets" for better performance. Note that any exceptions which might occur during these operations at the TD layer are swallowed at that level and logged. CW layer exceptions are propagated.

Since:
release specific (what release of product did this appear in)

Method Summary
boolean hasNext()
Returns true if and only if this iterator has at least one more object in it.
CwMessage next()
Returns a CwMessage object if there is one left in the iterator.
void seek(int iPosition)
Go directly to the specified index in the iterator.
int size()
Returns the number of elements in the iterator.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

hasNext

public boolean hasNext()
Returns true if and only if this iterator has at least one more object in it.

next

public CwMessage next()
               throws CwException
Returns a CwMessage object if there is one left in the iterator. If there are no elements left in the iterator, throws NoSuchElementException.
Throws:
CwException

seek

public void seek(int iPosition)
          throws CwException
Go directly to the specified index in the iterator.
Throws:
CwException

size

public int size()
         throws CwException
Returns the number of elements in the iterator.
Throws:
CwException

Copyright © 2001, 2005, Oracle. All rights reserved.