org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl
Class FilterDataBridge

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.REFDataBridge
      extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.FilterDataBridge
All Implemented Interfaces:
ContentTypeDataSource, DataBridge, DataHandler, DataSink, DataSource

public class FilterDataBridge
extends REFDataBridge

Author:
Dimitris Katris, NKUA DataBridge which filters the DataElements that are appended to it depending their ContentType.

Field Summary
protected  ContentType filterContentType
          The ContentType with which the FilterDataBridge checks the elements of the source DataSource.
protected  DataSource source
          The source from which the FilterDataBridge retrieves DataElements.
 
Constructor Summary
FilterDataBridge(DataSource source, ContentType filterContentType)
          Creates a new FilterDataBridge.
 
Method Summary
 
Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.REFDataBridge
append, close, getOutput, hasNext, isClosed, next, nextContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected DataSource source
The source from which the FilterDataBridge retrieves DataElements.


filterContentType

protected ContentType filterContentType
The ContentType with which the FilterDataBridge checks the elements of the source DataSource.

Constructor Detail

FilterDataBridge

public FilterDataBridge(DataSource source,
                        ContentType filterContentType)
                 throws Exception
Creates a new FilterDataBridge.

Parameters:
source - The source from which the FilterDataBridge retrieves DataElements.
filterContentType - The ContentType with which the FilterDataBridge checks the elements of the source DataSource.
Throws:
Exception - If source or filterContentType are not properly set.


Copyright © 2013. All Rights Reserved.