Package net.sf.opendse.io
Class SpecificationReader
java.lang.Object
net.sf.opendse.io.SpecificationReader
The
SpecificationReader
reads a Specification
from an
InputStream
or file.-
Constructor Summary
ConstructorDescriptionDefault constructor with the default class dictionary.SpecificationReader
(ClassDictionary classDict) Constructor to work with a custom class dictionary. -
Method Summary
Modifier and TypeMethodDescriptionRead specification from a file.read
(InputStream in) Read specification from an input stream.Read specification from a file.toSpecification
(nu.xom.Element eSpecification) Convert an XML element to a specification
-
Constructor Details
-
SpecificationReader
public SpecificationReader()Default constructor with the default class dictionary. -
SpecificationReader
Constructor to work with a custom class dictionary.- Parameters:
classDict
- the custom class dictionary
-
-
Method Details
-
read
Read specification from a file.- Parameters:
filename
- the file name- Returns:
- the specification
-
read
Read specification from a file.- Parameters:
file
- the file- Returns:
- the specification
-
read
Read specification from an input stream.- Parameters:
in
- the input stream- Returns:
- the specification
-
toSpecification
Convert an XML element to a specification- Parameters:
eSpecification
- the XML element- Returns:
- the specification
-