DOFCredentialscreate Method (FileStream)OpenDOF Object Access Library
Create a DOFCredentials by reading from an System.IO.Stream .

NOTE: It is the caller's responsibility to try-finally close

stream
passed in.

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: DOFCredentials
DOFCredentials created from
stream
. Never returns null.
Exceptions

ExceptionCondition
ArgumentExceptionIf stream is null.
DOFExceptionThe stream is empty or too large.
IOExceptionIf the stream could not be read.
DOFException
See Also

Reference