|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.pivot.OCLInput
@Deprecated public final class OCLInput
Encapsulation of an OCL document, which may be obtained from a string or from a stream. The content of the OCL document consists of one or more context declarations (including constraints) with optional package declarations.
Constructor Summary | |
---|---|
OCLInput(java.io.InputStream oclStream)
Deprecated. Creates an OCL document from an input stream, using the default character set to decode it. |
|
OCLInput(java.io.InputStream oclStream,
java.lang.String encoding)
Deprecated. Creates an OCL document from an input stream in the specified encoding. |
|
OCLInput(java.io.Reader oclReader)
Deprecated. Creates an OCL document from a character stream. |
|
OCLInput(java.lang.String oclText)
Deprecated. Creates an OCL document from a string. |
Method Summary | |
---|---|
char[] |
getContent()
Deprecated. The contents of the OCL document as a character array, suitable for consumption by the OCL parser. |
java.io.Reader |
getContentAsStream()
Deprecated. The contents of the OCL document as a character stream, suitable for consumption by the OCL parser. |
java.lang.String |
getContentAsString()
Deprecated. The contents of the OCL document as a character array, suitable for consumption by the OCL parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OCLInput(java.lang.String oclText)
oclText
- the string containing the OCL documentpublic OCLInput(java.io.InputStream oclStream)
oclStream
- the input stream providing the OCL documentpublic OCLInput(java.io.InputStream oclStream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
oclStream
- the input stream providing the OCL documentencoding
- the stream's character encoding
java.io.UnsupportedEncodingException
- if the specified encoding is not
supported in this virtual machinepublic OCLInput(java.io.Reader oclReader)
oclReader
- the stream providing the OCL documentMethod Detail |
---|
public char[] getContent() throws ParserException
ParserException
- on an I/O failure in reading the contentpublic java.lang.String getContentAsString() throws ParserException
ParserException
- on an I/O failure in reading the contentpublic java.io.Reader getContentAsStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |