温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:X3BLOG 单用户1.0 build80707(ACCESS)源代码
当前文件路径:x3blogAccessBuild80707/SharpZipLib/Tar/InvalidHeaderException.cs

1// InvalidHeaderException.cs 2
// Copyright (C) 2001 Mike Krueger 3
// 4
// This program is free software; you can redistribute it and/or 5
// modify it under the terms of the GNU General Public License 6
// as published by the Free Software Foundation; either version 2 7
// of the License, or (at your option) any later version. 8
// 9
// This program is distributed in the hope that it will be useful, 10
// but WITHOUT ANY WARRANTY; without even the implied warranty of 11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12
// GNU General Public License for more details. 13
// 14
// You should have received a copy of the GNU General Public License 15
// along with this program; if not, write to the Free Software 16
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17
// 18
// Linking this library statically or dynamically with other modules is 19
// making a combined work based on this library. Thus, the terms and 20
// conditions of the GNU General Public License cover the whole 21
// combination. 22
// 23
// As a special exception, the copyright holders of this library give you 24
// permission to link this library with independent modules to produce an 25
// executable, regardless of the license terms of these independent 26
// modules, and to copy and distribute the resulting executable under 27
// terms of your choice, provided that you also meet, for each linked 28
// independent module, the terms and conditions of the license of that 29
// module. An independent module is a module which is not derived from 30
// or based on this library. If you modify this library, you may extend 31
// this exception to your version of the library, but you are not 32
// obligated to do so. If you do not wish to do so, delete this 33
// exception statement from your version. 34
35
namespace ICSharpCode.SharpZipLib.Tar { 36
37
/// <summary> 38
/// This exception is used to indicate that there is a problem 39
/// with a TAR archive header. 40
/// </summary> 41
public class InvalidHeaderException : TarException 42
{ 43
/// <summary> 44
/// Initialise a new instance of the InvalidHeaderException class. 45
/// </summary> 46
public InvalidHeaderException() 47
{ 48
} 49
50
/// <summary> 51
/// Initialises a new instance of the InvalidHeaderException class with a specified message. 52
/// </summary> 53
public InvalidHeaderException(string msg) : base(msg) 54
{ 55
} 56
} 57
} 58
59
/* The original Java file had this header: 60
** Authored by Timothy Gerard Endres 61
** <mailto:time@gjt.org> <http://www.trustice.com> 62
** 63
** This work has been placed into the public domain. 64
** You may use this work in any way and for any purpose you wish. 65
** 66
** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, 67
** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR 68
** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY 69
** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR 70
** REDISTRIBUTION OF THIS SOFTWARE. 71
** 72
*/ 73
74





}