public class SampleCodeReader
extends java.lang.Object
| Constructor and Description |
|---|
SampleCodeReader(java.lang.String sampleDir)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
RetrievedCodeSample |
readSample(java.lang.String serviceName,
java.lang.String sampleId)
Retrieves a specified code sample.
|
public SampleCodeReader(java.lang.String sampleDir)
throws java.lang.Exception
sampleDir - directory containing code sample XML filesjava.lang.Exception - if SAX Parser cannot be initializedpublic RetrievedCodeSample readSample(java.lang.String serviceName, java.lang.String sampleId) throws SampleRetrievalException
serviceName - service sample belongs tosampleId - unique id of sampleSampleRetrievalException - if sample cannot be retrieved due to an errorCopyright © 2017. All Rights Reserved.