Class ExporterFilter
java.lang.Object
com.denodo.scheduler.api.exporter.filter.ExporterFilter
This abstract class defines Exporter filters, such as encryption or
compression filters, which can be chained to combine their behaviors
(i.e. encrypt and then zip an exporter's output file).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InputStreamInitializes an input stream based on the exporter's parameters and encapsulates the passed input stream.protected abstract OutputStreamInitializes an output stream based on the exporter's parameters and encapsulates the passed output stream.Obtains an input stream which combines all the associated filter's input streams.protected abstract StringgetName()Returns the exporter's name.Getter for the next filter to be applied.Obtains an output stream which combines all the associated filter's output streams.voidsetNextFilter(ExporterFilter nextFilter) Setter for the next filter to be applied.
-
Field Details
-
nextFilter
-
-
Constructor Details
-
ExporterFilter
public ExporterFilter()
-
-
Method Details
-
getInputStream
Obtains an input stream which combines all the associated filter's input streams.- Parameters:
in- the base input stream.- Returns:
- the combined input stream.
- Throws:
InternalErrorException
-
doGetInputStream
Initializes an input stream based on the exporter's parameters and encapsulates the passed input stream.- Parameters:
in- a starting input stream.- Returns:
- the initialized input stream.
- Throws:
InternalErrorException
-
getOutputStream
Obtains an output stream which combines all the associated filter's output streams.- Parameters:
out- the base output stream.- Returns:
- the combined output stream.
- Throws:
InternalErrorException
-
doGetOutputStream
Initializes an output stream based on the exporter's parameters and encapsulates the passed output stream.- Parameters:
in- a starting output stream.- Returns:
- the initialized output stream.
- Throws:
InternalErrorException
-
getNextFilter
Getter for the next filter to be applied.- Returns:
- the filter.
-
setNextFilter
Setter for the next filter to be applied.- Parameters:
nextFilter- the filter.
-
getName
Returns the exporter's name.- Returns:
- the name.
-