Exemplo n.º 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;
 }
Exemplo n.º 2
0
 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];
 }
Exemplo n.º 3
0
 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;
 }