Package org.apache.any23.extractor
Class ExampleInputOutput
- java.lang.Object
-
- org.apache.any23.extractor.ExampleInputOutput
-
public class ExampleInputOutput extends Object
A reporter for example input and output of an extractor. Example input is part of every extractor's metadata; example output is obtained by running the extractor on its own example input. This is useful as a documentation device.- Author:
- Richard Cyganiak (richard@cyganiak.de)
-
-
Constructor Summary
Constructors Constructor Description ExampleInputOutput(String extractorName)
ExampleInputOutput(ExtractorFactory<?> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExampleInput()
String
getExampleIRI()
String
getExampleOutput()
-
-
-
Constructor Detail
-
ExampleInputOutput
public ExampleInputOutput(String extractorName)
-
ExampleInputOutput
public ExampleInputOutput(ExtractorFactory<?> factory)
-
-
Method Detail
-
getExampleInput
public String getExampleInput() throws IOException
- Throws:
IOException
-
getExampleIRI
public String getExampleIRI()
-
getExampleOutput
public String getExampleOutput() throws IOException, ExtractionException
- Throws:
IOException
ExtractionException
-
-