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​(org.apache.any23.extractor.ExtractorFactory<?> factory)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getExampleInput()` |
    `String` | `getExampleIRI()` |
    `String` | `getExampleOutput()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExampleInputOutput

          public ExampleInputOutput​(String extractorName)

    - #### ExampleInputOutput

          public ExampleInputOutput​(org.apache.any23.extractor.ExtractorFactory<?> factory)

  - ### Method Detail

    - #### getExampleInput

          public String getExampleInput()
                                 throws IOException

      Throws:
        `IOException`

    - #### getExampleIRI

          public String getExampleIRI()

    - #### getExampleOutput

          public String getExampleOutput()
                                  throws IOException,
                                         org.apache.any23.extractor.ExtractionException

      Throws:
        `IOException`
        `org.apache.any23.extractor.ExtractionException`