Skip to content

Commit

Permalink
Cleanup and PR icsharpcode#517
Browse files Browse the repository at this point in the history
  • Loading branch information
HowToDoThis committed Aug 11, 2021
1 parent fd1a17c commit 20d87aa
Show file tree
Hide file tree
Showing 16 changed files with 284 additions and 461 deletions.
4 changes: 2 additions & 2 deletions src/ICSharpCode.SharpZipLib/Checksum/Adler32.cs
Expand Up @@ -46,8 +46,8 @@ namespace ICSharpCode.SharpZipLib.Checksum
/// checked separately. (Any sequence of zeroes has a Fletcher
/// checksum of zero.)"
/// </summary>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream"/>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream"/>
/// <see cref="Zip.Compression.Streams.InflaterInputStream"/>
/// <see cref="Zip.Compression.Streams.DeflaterOutputStream"/>
public sealed class Adler32 : IChecksum
{
#region Instance Fields
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Core/NameFilter.cs
Expand Up @@ -41,7 +41,7 @@ public NameFilter(string filter)
/// Test a string to see if it is a valid regular expression.
/// </summary>
/// <param name="expression">The expression to test.</param>
/// <returns>True if expression is a valid <see cref="System.Text.RegularExpressions.Regex"/> false otherwise.</returns>
/// <returns>True if expression is a valid <see cref="Regex"/> false otherwise.</returns>
public static bool IsValidExpression(string expression)
{
bool result = true;
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Core/PathFilter.cs
Expand Up @@ -118,7 +118,7 @@ public class ExtendedPathFilter : PathFilter
/// </summary>
/// <param name="name">The filename to test.</param>
/// <returns>True if the filter matches, false otherwise.</returns>
/// <exception cref="System.IO.FileNotFoundException">The <see paramref="fileName"/> doesnt exist</exception>
/// <exception cref="FileNotFoundException">The <see paramref="fileName"/> doesnt exist</exception>
public override bool IsMatch(string name)
{
bool result = base.IsMatch(name);
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Core/PathUtils.cs
Expand Up @@ -12,7 +12,7 @@ public static class PathUtils
/// </summary>
/// <param name="path">A <see cref="string"/> containing path information.</param>
/// <returns>The path with the root removed if it was present; path otherwise.</returns>
/// <remarks>Unlike the <see cref="System.IO.Path"/> class the path isn't otherwise checked for validity.</remarks>
/// <remarks>Unlike the <see cref="Path"/> class the path isn't otherwise checked for validity.</remarks>
public static string DropPathRoot(string path)
{
string result = path;
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Lzw/LzwInputStream.cs
Expand Up @@ -62,7 +62,7 @@ public LzwInputStream(Stream baseInputStream)
}

/// <summary>
/// See <see cref="System.IO.Stream.ReadByte"/>
/// See <see cref="Stream.ReadByte"/>
/// </summary>
/// <returns></returns>
public override int ReadByte()
Expand Down
16 changes: 8 additions & 8 deletions src/ICSharpCode.SharpZipLib/Zip/Compression/Deflater.cs
Expand Up @@ -157,7 +157,7 @@ public Deflater() : this(DEFAULT_COMPRESSION, false)
/// the compression level, a value between NO_COMPRESSION
/// and BEST_COMPRESSION, or DEFAULT_COMPRESSION.
/// </param>
/// <exception cref="System.ArgumentOutOfRangeException">if lvl is out of range.</exception>
/// <exception cref="ArgumentOutOfRangeException">if lvl is out of range.</exception>
public Deflater(int level) : this(level, false)
{
}
Expand All @@ -174,7 +174,7 @@ public Deflater(int level) : this(level, false)
/// beginning and the adler checksum at the end of the output. This is
/// useful for the GZIP/PKZIP formats.
/// </param>
/// <exception cref="System.ArgumentOutOfRangeException">if lvl is out of range.</exception>
/// <exception cref="ArgumentOutOfRangeException">if lvl is out of range.</exception>
public Deflater(int level, bool noZlibHeaderOrFooter)
{
if (level == DEFAULT_COMPRESSION)
Expand Down Expand Up @@ -302,7 +302,7 @@ public bool IsNeedingInput
/// <param name="input">
/// the buffer containing the input data.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// if the buffer was finished() or ended().
/// </exception>
public void SetInput(byte[] input)
Expand All @@ -325,7 +325,7 @@ public void SetInput(byte[] input)
/// <param name="count">
/// the number of data bytes of input.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// if the buffer was Finish()ed or if previous input is still pending.
/// </exception>
public void SetInput(byte[] input, int offset, int count)
Expand Down Expand Up @@ -418,10 +418,10 @@ public int Deflate(byte[] output)
/// The number of compressed bytes added to the output, or 0 if either
/// needsInput() or finished() returns true or length is zero.
/// </returns>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// If Finish() was previously called.
/// </exception>
/// <exception cref="System.ArgumentOutOfRangeException">
/// <exception cref="ArgumentOutOfRangeException">
/// If offset or length don't match the array length.
/// </exception>
public int Deflate(byte[] output, int offset, int length)
Expand Down Expand Up @@ -528,7 +528,7 @@ public int Deflate(byte[] output, int offset, int length)
/// <param name="dictionary">
/// the dictionary.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// if SetInput () or Deflate () were already called or another dictionary was already set.
/// </exception>
public void SetDictionary(byte[] dictionary)
Expand All @@ -553,7 +553,7 @@ public void SetDictionary(byte[] dictionary)
/// <param name="count">
/// The number of bytes in the dictionary.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// If SetInput () or Deflate() were already called or another dictionary was already set.
/// </exception>
public void SetDictionary(byte[] dictionary, int index, int count)
Expand Down
16 changes: 8 additions & 8 deletions src/ICSharpCode.SharpZipLib/Zip/Compression/Inflater.cs
Expand Up @@ -580,7 +580,7 @@ public void SetDictionary(byte[] buffer)
/// <param name="count">
/// The number of bytes in the dictionary.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// No dictionary is needed.
/// </exception>
/// <exception cref="SharpZipBaseException">
Expand Down Expand Up @@ -644,10 +644,10 @@ public void SetInput(byte[] buffer)
/// <param name="count">
/// The number of bytes of input to use.
/// </param>
/// <exception cref="System.InvalidOperationException">
/// <exception cref="InvalidOperationException">
/// No input is needed.
/// </exception>
/// <exception cref="System.ArgumentOutOfRangeException">
/// <exception cref="ArgumentOutOfRangeException">
/// The index and/or count are wrong.
/// </exception>
public void SetInput(byte[] buffer, int index, int count)
Expand All @@ -669,10 +669,10 @@ public void SetInput(byte[] buffer, int index, int count)
/// The number of bytes written to the buffer, 0 if no further
/// output can be produced.
/// </returns>
/// <exception cref="System.ArgumentOutOfRangeException">
/// <exception cref="ArgumentOutOfRangeException">
/// if buffer has length 0.
/// </exception>
/// <exception cref="System.FormatException">
/// <exception cref="FormatException">
/// if deflated stream is invalid.
/// </exception>
public int Inflate(byte[] buffer)
Expand Down Expand Up @@ -703,13 +703,13 @@ public int Inflate(byte[] buffer)
/// <returns>
/// the number of bytes written to the buffer, 0 if no further output can be produced.
/// </returns>
/// <exception cref="System.ArgumentOutOfRangeException">
/// <exception cref="ArgumentOutOfRangeException">
/// if count is less than 0.
/// </exception>
/// <exception cref="System.ArgumentOutOfRangeException">
/// <exception cref="ArgumentOutOfRangeException">
/// if the index and / or count are wrong.
/// </exception>
/// <exception cref="System.FormatException">
/// <exception cref="FormatException">
/// if deflated stream is invalid.
/// </exception>
public int Inflate(byte[] buffer, int offset, int count)
Expand Down
Expand Up @@ -323,7 +323,7 @@ public ICryptoTransform CryptoTransform
/// format. The "deflate" format is described in RFC 1951.
///
/// This stream may form the basis for other decompression filters, such
/// as the <see cref="ICSharpCode.SharpZipLib.GZip.GZipInputStream">GZipInputStream</see>.
/// as the <see cref="GZip.GZipInputStream">GZipInputStream</see>.
///
/// Author of the original java version : John Leuner.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Zip/FastZip.cs
Expand Up @@ -315,7 +315,7 @@ public bool RestoreAttributesOnExtract
/// Get/set the Compression Level that will be used
/// when creating the zip
/// </summary>
public Deflater.CompressionLevel CompressionLevel
public CompressionLevel CompressionLevel
{
get { return compressionLevel_; }
set { compressionLevel_ = value; }
Expand Down

0 comments on commit 20d87aa

Please sign in to comment.