public final class OCLInput extends Object
| Constructor and Description |
|---|
OCLInput(InputStream oclStream)
Creates an OCL document from an input stream, using the default character
set to decode it.
|
OCLInput(InputStream oclStream,
String encoding)
Creates an OCL document from an input stream in the specified encoding.
|
OCLInput(Reader oclReader)
Creates an OCL document from a character stream.
|
OCLInput(String oclText)
Creates an OCL document from a string.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getContent()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
Reader |
getContentAsStream()
The contents of the OCL document as a character stream, suitable for
consumption by the OCL parser.
|
String |
getContentAsString()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
public OCLInput(String oclText)
oclText - the string containing the OCL documentpublic OCLInput(InputStream oclStream)
oclStream - the input stream providing the OCL documentpublic OCLInput(InputStream oclStream, String encoding) throws UnsupportedEncodingException
oclStream - the input stream providing the OCL documentencoding - the stream's character encodingUnsupportedEncodingException - if the specified encoding is not
supported in this virtual machinepublic OCLInput(Reader oclReader)
oclReader - the stream providing the OCL documentpublic char[] getContent()
throws ParserException
ParserException - on an I/O failure in reading the contentpublic String getContentAsString() throws ParserException
ParserException - on an I/O failure in reading the contentpublic Reader getContentAsStream()
Copyright © 2015 Open eHealth Foundation. All rights reserved.