org.rhq.enterprise.server.sync.exporters
Class JAXBExportingIterator<T,E>

java.lang.Object
  extended by org.rhq.enterprise.server.sync.exporters.AbstractDelegatingExportingIterator<T,E>
      extended by org.rhq.enterprise.server.sync.exporters.JAXBExportingIterator<T,E>
All Implemented Interfaces:
Iterator<T>, ExportingIterator<T>

public abstract class JAXBExportingIterator<T,E>
extends AbstractDelegatingExportingIterator<T,E>

Author:
Lukas Krejci

Constructor Summary
JAXBExportingIterator(Iterator<E> sourceIterator, Class<?>... jaxbBoundClasses)
           
 
Method Summary
 void export(ExportWriter output)
          Exports the current entity using the provided writer.
 
Methods inherited from class org.rhq.enterprise.server.sync.exporters.AbstractDelegatingExportingIterator
convert, getCurrent, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rhq.enterprise.server.sync.exporters.ExportingIterator
getNotes
 

Constructor Detail

JAXBExportingIterator

public JAXBExportingIterator(Iterator<E> sourceIterator,
                             Class<?>... jaxbBoundClasses)
Method Detail

export

public void export(ExportWriter output)
            throws XMLStreamException
Description copied from interface: ExportingIterator
Exports the current entity using the provided writer.

Can throw a runtime exception to denote a failure.

Throws:
XMLStreamException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.