Beispiel #1
0
 public void ReadFrom(Stream stream)
 {
     _headers.Clear();
     if (_oldFileStream != null)
     {
         _oldFileStream.Close();
     }
     try
     {
         _oldFileStream = AssParser.ReadHeaderFromBinary(stream, _headers);
     }
     catch
     {
         stream.Close();
         throw;
     }
 }
Beispiel #2
0
 public void Extract(string tarDir, bool overwrite)
 {
     AssParser.ExtractBinary(_headers, _oldFileStream, tarDir, overwrite);
 }
Beispiel #3
0
 public void WriteTo(Stream stream)
 {
     AssParser.ToBinary(_headers, _oldFileStream, _fileReference, stream);
 }
Beispiel #4
0
 public void WriteTo(string path)
 {
     AssParser.ToBinary(_headers, _oldFileStream, _fileReference, path);
 }