Calyptus.Lob.StreamBlob.StreamBlob C# (CSharp) 메소드

StreamBlob() 공개 메소드

public StreamBlob ( Stream stream ) : System.IO
stream Stream
리턴 System.IO
		public StreamBlob(Stream stream)
		{
			if (stream == null) throw new ArgumentNullException("stream");
			if (!stream.CanRead) throw new NotSupportedException("Stream cannot read. Blobs are read-only.");

			this.stream = stream;
			try
			{
				this.initialPosition = stream.CanSeek ? stream.Position : -1L;
			}
			catch
			{
				this.initialPosition = -1L;
			}
		}