Create a DOFCredentials by reading from an
System.IO.Stream
.
NOTE: It is the caller's responsibility to try-finally close passed in.
stream
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public static DOFCredentials create( FileStream stream )
Parameters
- stream
- Type: System.IOFileStream
An input stream such as from file, url or classpath. Must not be null.
Return Value
Type: DOFCredentialsDOFCredentials created from
stream
Exceptions
Exception | Condition |
---|---|
ArgumentException | If stream is null. |
DOFException | The stream is empty or too large. |
IOException | If the stream could not be read. |
DOFException |
See Also