Beispiel #1
0
 public static TarBuffer CreateOutputTarBuffer(Stream outputStream, int blockSize, int recordSize)
 {
     TarBuffer buffer = new TarBuffer();
     buffer.inputStream = null;
     buffer.outputStream = outputStream;
     buffer.Initialize(blockSize, recordSize);
     return buffer;
 }
 public TarOutputStream(Stream outputStream, int blockSize, int recordSize)
 {
     this.outputStream = outputStream;
     this.buffer = TarBuffer.CreateOutputTarBuffer(outputStream, blockSize, recordSize);
     this.debug = false;
     this.assemLen = 0;
     this.assemBuf = new byte[recordSize];
     this.recordBuf = new byte[recordSize];
 }
 public TarInputStream(Stream inputStream, int blockSize, int recordSize)
 {
     this.inputStream = inputStream;
     this.buffer = TarBuffer.CreateInputTarBuffer(inputStream, blockSize, recordSize);
     this.readBuf = null;
     this.debug = false;
     this.hasHitEOF = false;
     this.eFactory = null;
 }