AODL.Package.ODFPackage.GetStreamByName C# (CSharp) Метод

GetStreamByName() публичный Метод

Gets the name of the stream by.
public GetStreamByName ( string entryName ) : MemoryStream
entryName string Name of the entry.
Результат MemoryStream
		public MemoryStream GetStreamByName(string entryName)
		{
			ZipEntry zipEntry = this.GetEntryByName(entryName);
			if (zipEntry != null)
			{
				long entrySize = zipEntry.Size;
				Byte[] b = new Byte[entrySize];			
				Stream zipStream = this._package.GetInputStream((ZipEntry)zipEntry.Clone());
				if (zipStream != null)
				{
					zipStream.Read(b, 0, b.Length);
					return new System.IO.MemoryStream(b, true);
				}
			}
			return null;
		}