@Deprecated public final class OCLInput extends Object
Constructor and Description |
---|
OCLInput(InputStream oclStream)
Deprecated.
Creates an OCL document from an input stream, using the default character
set to decode it.
|
OCLInput(InputStream oclStream,
String encoding)
Deprecated.
Creates an OCL document from an input stream in the specified encoding.
|
OCLInput(Reader oclReader)
Deprecated.
Creates an OCL document from a character stream.
|
OCLInput(String oclText)
Deprecated.
Creates an OCL document from a string.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getContent()
Deprecated.
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
Reader |
getContentAsStream()
Deprecated.
The contents of the OCL document as a character stream, suitable for
consumption by the OCL parser.
|
String |
getContentAsString()
Deprecated.
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 © 2005, 2018 IBM Corporation and others. All Rights Reserved.