示例#1
0
 /// <summary>
 /// Construct a TarInputStream with user specified block factor
 /// </summary>
 /// <param name="inputStream">stream to source data from</param>
 /// <param name="blockFactor">block factor to apply to archive</param>
 /// <param name="nameEncoding">The <see cref="Encoding"/> used for the Name fields, or null for ASCII only</param>
 public TarInputStream(Stream inputStream, int blockFactor, Encoding nameEncoding)
 {
     this.inputStream = inputStream;
     tarBuffer        = TarBuffer.CreateInputTarBuffer(inputStream, blockFactor);
     encoding         = nameEncoding;
 }
 /// <summary>
 /// Construct a TarInputStream with user specified block factor
 /// </summary>
 /// <param name="inputStream">stream to source data from</param>
 /// <param name="blockFactor">block factor to apply to archive</param>
 public TarInputStream(Stream inputStream, int blockFactor)
 {
     this.inputStream = inputStream;
     tarBuffer        = TarBuffer.CreateInputTarBuffer(inputStream, blockFactor);
 }