|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.psnc.dl.ege.EGEImpl
public class EGEImpl
Standard Enrich Garage Engine(EGE) implementation.
Implementation uses JUNG library for generating graph of conversions.
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
|
| Constructor Summary | |
|---|---|
EGEImpl()
Default Constructor : initializes basic structures. |
|
| Method Summary | |
|---|---|
void |
catchException(java.lang.Exception ex)
Implemented method normally would store received exception. |
java.util.List<ConversionsPath> |
findConversionPaths(DataType sourceDataType)
Method returns every possible conversion path for specified input DataType. |
java.util.List<ConversionsPath> |
findConversionPaths(DataType sourceDataType,
DataType resultDataType)
Method return every possible/unique convert path for specified input type data with pointed output type data. |
edu.uci.ics.jung.graph.Graph<ConversionAction,java.lang.Integer> |
getConvertersGraph()
Returns conversion graph. |
void |
performConversion(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
ConversionsPath path)
Performs sequence of conversions based on specified convert path. |
java.lang.String |
performRecognition(java.io.InputStream inputData)
Method performs recognition of the MIME type of an input data. |
ValidationResult |
performValidation(java.io.InputStream inputData,
DataType inputDataType)
Method performs validation using all loaded through extension mechanism Validator implementations. |
java.util.Set<DataType> |
returnSupportedInputFormats()
Returns all supported by EGE input formats - entry points for conversion. |
java.util.Set<DataType> |
returnSupportedValidationFormats()
Returns set of data types that are supported for validation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_SIZE
| Constructor Detail |
|---|
public EGEImpl()
| Method Detail |
|---|
public java.util.List<ConversionsPath> findConversionPaths(DataType sourceDataType)
DataType. One of the received paths can be then used to
perform chained conversion.
findConversionPaths in interface EGEsourceDataType - input data type
public java.util.List<ConversionsPath> findConversionPaths(DataType sourceDataType,
DataType resultDataType)
findConversionPaths in interface EGEsourceDataType - input data typeresultDataType - expected output data type
public ValidationResult performValidation(java.io.InputStream inputData,
DataType inputDataType)
throws java.io.IOException,
ValidatorException,
EGEException
Method performs validation using all loaded through extension mechanism
Validator implementations.
ValidationResult which contains validation
status and error/warning messages.
performValidation in interface EGEinputData - input stream that contains necessary datainputDataType - validation argument
ValidationResult
java.io.IOException
{@link - ValidatorException}
{@link - EGEException}
ValidatorException
EGEException
public java.lang.String performRecognition(java.io.InputStream inputData)
throws RecognizerException,
java.io.IOException
Recognizer implementations recognizes MIME type,
method returns String value of this MIME type, otherwise method throws
exception.
performRecognition in interface EGEinputData - input stream that contains necessary data
RecognizerException
java.io.IOException
public void performConversion(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
ConversionsPath path)
throws ConverterException,
EGEException,
java.io.IOException
performConversion in interface EGEinputStream - source of data to convertoutputStream - output stream for converted datapath - defines sequence of conversion.
EGEException - if unexpected error occurred within method.
ConverterException - if during conversion method an exception occurred.
java.io.IOExceptionpublic java.util.Set<DataType> returnSupportedValidationFormats()
Returns set of data types that are supported for validation.
returnSupportedValidationFormats in interface EGEpublic java.util.Set<DataType> returnSupportedInputFormats()
Returns all supported by EGE input formats - entry points for conversion.
returnSupportedInputFormats in interface EGEpublic edu.uci.ics.jung.graph.Graph<ConversionAction,java.lang.Integer> getConvertersGraph()
public void catchException(java.lang.Exception ex)
ExceptionListener
catchException in interface ExceptionListenerex - received exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||