Permalink
Browse files

MIT License

* Relicensed all code under MIT-style license
  * See LICENSE.txt for more information
* All files now "Copyright © 2000-2016 SharpZipLib Contributors"
* Removed header comments from all source files
* Removed CompressionLevel.cs, CompressionMode.cs, and ZipArchiveMode.cs
  • Loading branch information...
McNeight committed May 16, 2016
1 parent 0498929 commit c9454d58daac255fbd43395784bd05b6c7b3ff87
Showing with 1,191 additions and 4,774 deletions.
  1. +0 −340 Documentation/COPYING.txt
  2. +4 −4 GlobalAssemblyInfo.cs
  3. +2 −1 ICSharpCode.SharpZipLib.Tests/Checksum/ChecksumTests.cs
  4. +4 −4 ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj
  5. +2 −2 ICSharpCode.SharpZipLib.Tests/Lzw/LzwTests.cs
  6. +11 −22 ICSharpCode.SharpZipLib.Tests/TestSupport/RingBuffer.cs
  7. +21 −42 ICSharpCode.SharpZipLib.Tests/TestSupport/Streams.cs
  8. +8 −16 ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs
  9. +3 −2 ICSharpCode.SharpZipLib.Tests/packages.config
  10. +0 −35 ICSharpCode.SharpZipLib/AssemblyInfo.cs
  11. +0 −36 ICSharpCode.SharpZipLib/BZip2/BZip2.cs
  12. +0 −77 ICSharpCode.SharpZipLib/BZip2/BZip2Constants.cs
  13. +0 −35 ICSharpCode.SharpZipLib/BZip2/BZip2Exception.cs
  14. +28 −117 ICSharpCode.SharpZipLib/BZip2/BZip2InputStream.cs
  15. +64 −157 ICSharpCode.SharpZipLib/BZip2/BZip2OutputStream.cs
  16. +0 −39 ICSharpCode.SharpZipLib/Checksum/Adler32.cs
  17. +0 −38 ICSharpCode.SharpZipLib/Checksum/BZip2Crc.cs
  18. +0 −38 ICSharpCode.SharpZipLib/Checksum/Crc32.cs
  19. +1 −41 ICSharpCode.SharpZipLib/Checksum/IChecksum.cs
  20. +0 −19 ICSharpCode.SharpZipLib/CompressionLevel.cs
  21. +0 −13 ICSharpCode.SharpZipLib/CompressionMode.cs
  22. +12 −60 ICSharpCode.SharpZipLib/Core/FileSystemScanner.cs
  23. +0 −35 ICSharpCode.SharpZipLib/Core/INameTransform.cs
  24. +1 −36 ICSharpCode.SharpZipLib/Core/IScanFilter.cs
  25. +0 −38 ICSharpCode.SharpZipLib/Core/NameFilter.cs
  26. +14 −63 ICSharpCode.SharpZipLib/Core/PathFilter.cs
  27. +0 −35 ICSharpCode.SharpZipLib/Core/StreamUtils.cs
  28. +0 −35 ICSharpCode.SharpZipLib/Core/WindowsPathUtils.cs
  29. +26 −88 ICSharpCode.SharpZipLib/Encryption/PkzipClassic.cs
  30. +4 −40 ICSharpCode.SharpZipLib/Encryption/ZipAESStream.cs
  31. +10 −60 ICSharpCode.SharpZipLib/Encryption/ZipAESTransform.cs
  32. +1 −37 ICSharpCode.SharpZipLib/GZip/GZip.cs
  33. +0 −39 ICSharpCode.SharpZipLib/GZip/GZipConstants.cs
  34. +0 −35 ICSharpCode.SharpZipLib/GZip/GZipException.cs
  35. +0 −43 ICSharpCode.SharpZipLib/GZip/GzipInputStream.cs
  36. +0 −40 ICSharpCode.SharpZipLib/GZip/GzipOutputStream.cs
  37. +0 −3 ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
  38. +1 −37 ICSharpCode.SharpZipLib/Lzw/LzwConstants.cs
  39. +2 −38 ICSharpCode.SharpZipLib/Lzw/LzwException.cs
  40. +22 −66 ICSharpCode.SharpZipLib/Lzw/LzwInputStream.cs
  41. +0 −35 ICSharpCode.SharpZipLib/SharpZipBaseException.cs
  42. +0 −52 ICSharpCode.SharpZipLib/Tar/InvalidHeaderException.cs
  43. +24 −104 ICSharpCode.SharpZipLib/Tar/TarArchive.cs
  44. +7 −66 ICSharpCode.SharpZipLib/Tar/TarBuffer.cs
  45. +27 −107 ICSharpCode.SharpZipLib/Tar/TarEntry.cs
  46. +0 −36 ICSharpCode.SharpZipLib/Tar/TarException.cs
  47. +56 −138 ICSharpCode.SharpZipLib/Tar/TarHeader.cs
  48. +19 −87 ICSharpCode.SharpZipLib/Tar/TarInputStream.cs
  49. +14 −82 ICSharpCode.SharpZipLib/Tar/TarOutputStream.cs
  50. +39 −88 ICSharpCode.SharpZipLib/Zip/Compression/Deflater.cs
  51. +0 −39 ICSharpCode.SharpZipLib/Zip/Compression/DeflaterConstants.cs
  52. +45 −92 ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs
  53. +0 −39 ICSharpCode.SharpZipLib/Zip/Compression/DeflaterHuffman.cs
  54. +0 −39 ICSharpCode.SharpZipLib/Zip/Compression/DeflaterPending.cs
  55. +162 −215 ICSharpCode.SharpZipLib/Zip/Compression/Inflater.cs
  56. +96 −136 ICSharpCode.SharpZipLib/Zip/Compression/InflaterDynHeader.cs
  57. +0 −40 ICSharpCode.SharpZipLib/Zip/Compression/InflaterHuffmanTree.cs
  58. +4 −47 ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs
  59. +17 −75 ICSharpCode.SharpZipLib/Zip/Compression/Streams/DeflaterOutputStream.cs
  60. +25 −92 ICSharpCode.SharpZipLib/Zip/Compression/Streams/InflaterInputStream.cs
  61. +0 −40 ICSharpCode.SharpZipLib/Zip/Compression/Streams/OutputWindow.cs
  62. +6 −51 ICSharpCode.SharpZipLib/Zip/Compression/Streams/StreamManipulator.cs
  63. +12 −59 ICSharpCode.SharpZipLib/Zip/FastZip.cs
  64. +0 −41 ICSharpCode.SharpZipLib/Zip/IEntryFactory.cs
  65. +5 −46 ICSharpCode.SharpZipLib/Zip/WindowsNameTransform.cs
  66. +3 −48 ICSharpCode.SharpZipLib/Zip/ZipConstants.cs
  67. +98 −208 ICSharpCode.SharpZipLib/Zip/ZipEntry.cs
  68. +54 −104 ICSharpCode.SharpZipLib/Zip/ZipEntryFactory.cs
  69. +0 −39 ICSharpCode.SharpZipLib/Zip/ZipException.cs
  70. +21 −77 ICSharpCode.SharpZipLib/Zip/ZipExtraData.cs
  71. +128 −243 ICSharpCode.SharpZipLib/Zip/ZipFile.cs
  72. +12 −60 ICSharpCode.SharpZipLib/Zip/ZipHelperStream.cs
  73. +40 −90 ICSharpCode.SharpZipLib/Zip/ZipInputStream.cs
  74. +2 −41 ICSharpCode.SharpZipLib/Zip/ZipNameTransform.cs
  75. +13 −60 ICSharpCode.SharpZipLib/Zip/ZipOutputStream.cs
  76. +0 −32 ICSharpCode.SharpZipLib/ZipArchiveMode.cs
  77. +17 −0 LICENSE.txt
  78. +3 −19 README.md
  79. +1 −1 appveyor.yml
View

This file was deleted.

Oops, something went wrong.
View
@@ -6,7 +6,7 @@
// associated with an assembly.
[assembly: AssemblyCompany("ICSharpCode")]
[assembly: AssemblyProduct("SharpZipLib (#ziplib)")]
[assembly: AssemblyCopyright("Copyright © 2000-2016 AlphaSierraPapa for the SharpZipLib Team")]
[assembly: AssemblyCopyright("Copyright © 2000-2016 SharpZipLib Contributors")]
[assembly: AssemblyTrademark("")]
#if DEBUG
@@ -38,11 +38,11 @@
// Revision: the number of two second intervals since midnight in local time; i.e. 31308 = 17:23:36 local time.
// Specifies the version of the assembly being attributed.
[assembly: AssemblyVersion("0.87.*")]
[assembly: AssemblyVersion("1.0.*")]
// Instructs a compiler to use a specific version number for the Win32 file version resource.
// The Win32 file version is not required to be the same as the assembly's version number.
[assembly: AssemblyFileVersion("0.87")]
[assembly: AssemblyFileVersion("1.0")]
// Defines additional version information for an assembly manifest.
[assembly: AssemblyInformationalVersion("0.87 Cleanup Build")]
[assembly: AssemblyInformationalVersion("1.0")]
@@ -57,7 +57,8 @@ public void CRC_32()
exceptionTesting(underTestCrc32);
}
private void exceptionTesting(IChecksum crcUnderTest) {
private void exceptionTesting(IChecksum crcUnderTest)
{
bool exception = false;
@@ -104,12 +104,12 @@
<HintPath>..\packages\NUnit.3.2.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Ploeh.AutoFixture, Version=3.45.1.0, Culture=neutral, PublicKeyToken=b24654c590009d4f, processorArchitecture=MSIL">
<HintPath>..\packages\AutoFixture.3.45.1\lib\net40\Ploeh.AutoFixture.dll</HintPath>
<Reference Include="Ploeh.AutoFixture, Version=3.46.0.0, Culture=neutral, PublicKeyToken=b24654c590009d4f, processorArchitecture=MSIL">
<HintPath>..\packages\AutoFixture.3.46.0\lib\net40\Ploeh.AutoFixture.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Ploeh.AutoFixture.NUnit3, Version=3.45.1.0, Culture=neutral, PublicKeyToken=b24654c590009d4f, processorArchitecture=MSIL">
<HintPath>..\packages\AutoFixture.NUnit3.3.45.1\lib\net40\Ploeh.AutoFixture.NUnit3.dll</HintPath>
<Reference Include="Ploeh.AutoFixture.NUnit3, Version=3.46.0.0, Culture=neutral, PublicKeyToken=b24654c590009d4f, processorArchitecture=MSIL">
<HintPath>..\packages\AutoFixture.NUnit3.3.46.0\lib\net40\Ploeh.AutoFixture.NUnit3.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
@@ -1,9 +1,9 @@
using System.IO;
using ICSharpCode.SharpZipLib.LZW;
using ICSharpCode.SharpZipLib.Lzw;
using ICSharpCode.SharpZipLib.Tests.TestSupport;
using NUnit.Framework;
namespace ICSharpCode.SharpZipLib.Tests.LZW
namespace ICSharpCode.SharpZipLib.Tests.Lzw
{
[TestFixture]
@@ -271,58 +271,47 @@ public int Read(byte[] buffer, int index, int count)
/// <summary>
/// Gets a value indicating wether the buffer is empty or not.
/// </summary>
public bool IsEmpty
{
public bool IsEmpty {
get { return count_ == 0; }
}
public bool IsFull
{
get
{
public bool IsFull {
get {
return (count_ == array_.Length);
}
}
public bool IsClosed
{
public bool IsClosed {
get { return isClosed_; }
}
/// <summary>
/// Gets the number of elements in the buffer.
/// </summary>
public int Count
{
get
{
public int Count {
get {
return count_;
}
}
public int Length
{
public int Length {
get { return array_.Length; }
}
public long BytesWritten
{
public long BytesWritten {
get { return bytesWritten_; }
}
public long BytesRead
{
public long BytesRead {
get { return bytesRead_; }
}
/// <summary>
/// Indexer - Get an element from the tail of the RingBuffer.
/// </summary>
public byte this[int index]
{
get
{
public byte this[int index] {
get {
if ((index < 0) || (index >= array_.Length)) {
throw new ArgumentOutOfRangeException(nameof(index));
}
@@ -72,8 +72,7 @@ public override void Close()
/// Gets a value indicating whether this instance is closed.
/// </summary>
/// <value><c>true</c> if this instance is closed; otherwise, <c>false</c>.</value>
public bool IsClosed
{
public bool IsClosed {
get { return isClosed_; }
}
@@ -83,8 +82,7 @@ public bool IsClosed
/// <value>
/// <c>true</c> if this instance is disposed; otherwise, <c>false</c>.
/// </value>
public bool IsDisposed
{
public bool IsDisposed {
get { return isDisposed_; }
}
@@ -105,10 +103,8 @@ public class MemoryStreamWithoutSeek : TrackedMemoryStream
/// </summary>
/// <value></value>
/// <returns>true if the stream is open.</returns>
public override bool CanSeek
{
get
{
public override bool CanSeek {
get {
return false;
}
}
@@ -124,8 +120,7 @@ public class NullStream : Stream
/// </summary>
/// <value></value>
/// <returns>true if the stream supports reading; otherwise, false.</returns>
public override bool CanRead
{
public override bool CanRead {
get { return false; }
}
@@ -134,8 +129,7 @@ public override bool CanRead
/// </summary>
/// <value></value>
/// <returns>true if the stream supports seeking; otherwise, false.</returns>
public override bool CanSeek
{
public override bool CanSeek {
get { return false; }
}
@@ -144,8 +138,7 @@ public override bool CanSeek
/// </summary>
/// <value></value>
/// <returns>true if the stream supports writing; otherwise, false.</returns>
public override bool CanWrite
{
public override bool CanWrite {
get { return true; }
}
@@ -165,8 +158,7 @@ public override void Flush()
/// <returns>A long value representing the length of the stream in bytes.</returns>
/// <exception cref="T:System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
public override long Length
{
public override long Length {
get { throw new Exception("The method or operation is not implemented."); }
}
@@ -178,14 +170,11 @@ public override long Length
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
public override long Position
{
get
{
public override long Position {
get {
throw new Exception("The method or operation is not implemented.");
}
set
{
set {
throw new Exception("The method or operation is not implemented.");
}
}
@@ -281,8 +270,7 @@ public WindowedStream(int size)
/// </summary>
/// <value></value>
/// <returns>true if the stream supports reading; otherwise, false.</returns>
public override bool CanRead
{
public override bool CanRead {
get { return true; }
}
@@ -291,8 +279,7 @@ public override bool CanRead
/// </summary>
/// <value></value>
/// <returns>true if the stream supports seeking; otherwise, false.</returns>
public override bool CanSeek
{
public override bool CanSeek {
get { return false; }
}
@@ -301,8 +288,7 @@ public override bool CanSeek
/// </summary>
/// <value></value>
/// <returns>true if the stream supports writing; otherwise, false.</returns>
public override bool CanWrite
{
public override bool CanWrite {
get { return true; }
}
@@ -322,8 +308,7 @@ public override void Flush()
/// <returns>A long value representing the length of the stream in bytes.</returns>
/// <exception cref="T:System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
public override long Length
{
public override long Length {
// A bit of a HAK as its not true in the stream sense.
get { return ringBuffer_.Count; }
}
@@ -336,14 +321,11 @@ public override long Length
/// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
public override long Position
{
get
{
public override long Position {
get {
throw new Exception("The method or operation is not implemented.");
}
set
{
set {
throw new Exception("The method or operation is not implemented.");
}
}
@@ -436,8 +418,7 @@ public override void Write(byte[] buffer, int offset, int count)
/// Gets a value indicating whether this instance is closed.
/// </summary>
/// <value><c>true</c> if this instance is closed; otherwise, <c>false</c>.</value>
public bool IsClosed
{
public bool IsClosed {
get { return ringBuffer_.IsClosed; }
}
@@ -453,17 +434,15 @@ public override void Close()
/// Gets the bytes written.
/// </summary>
/// <value>The bytes written.</value>
public long BytesWritten
{
public long BytesWritten {
get { return ringBuffer_.BytesWritten; }
}
/// <summary>
/// Gets the bytes read.
/// </summary>
/// <value>The bytes read.</value>
public long BytesRead
{
public long BytesRead {
get { return ringBuffer_.BytesRead; }
}
@@ -54,43 +54,35 @@ public RuntimeInfo(string password, bool isDirectory)
original = new byte[0];
}
public byte[] Original
{
public byte[] Original {
get { return original; }
}
public CompressionMethod Method
{
public CompressionMethod Method {
get { return method; }
}
public int CompressionLevel
{
public int CompressionLevel {
get { return compressionLevel; }
}
public int Size
{
public int Size {
get { return size; }
}
public string Password
{
public string Password {
get { return password; }
}
bool Random
{
bool Random {
get { return random; }
}
public long Crc
{
public long Crc {
get { return crc; }
}
public bool IsDirectory
{
public bool IsDirectory {
get { return isDirectory_; }
}
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoFixture" version="3.45.1" targetFramework="net45" />
<package id="AutoFixture.NUnit3" version="3.45.1" targetFramework="net45" />
<package id="AutoFixture" version="3.46.0" targetFramework="net45" />
<package id="AutoFixture.NUnit3" version="3.46.0" targetFramework="net45" />
<package id="coveralls.io" version="1.3.4" targetFramework="net45" />
<package id="NUnit" version="3.2.1" targetFramework="net45" />
<package id="NUnit.Console" version="3.2.1" targetFramework="net45" />
<package id="NUnit.ConsoleRunner" version="3.2.1" targetFramework="net45" />
Oops, something went wrong.

0 comments on commit c9454d5

Please sign in to comment.