From abed9eb2c9ffdb864912a60801e5f641aa997239 Mon Sep 17 00:00:00 2001 From: catester Date: Sat, 14 Mar 2015 13:31:02 +0200 Subject: [PATCH] Revert "Replaced NotImplementedException for streams" This reverts commit 391663ac67457443376f60f32cb149cede2b246d. --- SharpCompress/IO/CountingWritableSubStream.cs | 12 ++++++------ SharpCompress/IO/MarkingBinaryReader.cs | 12 ++++++------ SharpCompress/IO/ReadOnlySubStream.cs | 14 +++++++------- SharpCompress/IO/RewindableStream.cs | 10 +++++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/SharpCompress/IO/CountingWritableSubStream.cs b/SharpCompress/IO/CountingWritableSubStream.cs index ef493445..3ba15008 100644 --- a/SharpCompress/IO/CountingWritableSubStream.cs +++ b/SharpCompress/IO/CountingWritableSubStream.cs @@ -35,28 +35,28 @@ namespace SharpCompress.IO public override long Length { - get { throw new NotSupportedException(); } + get { throw new NotImplementedException(); } } public override long Position { - get { throw new NotSupportedException(); } - set { throw new NotSupportedException(); } + get { throw new NotImplementedException(); } + set { throw new NotImplementedException(); } } public override int Read(byte[] buffer, int offset, int count) { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override long Seek(long offset, SeekOrigin origin) { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override void SetLength(long value) { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override void Write(byte[] buffer, int offset, int count) diff --git a/SharpCompress/IO/MarkingBinaryReader.cs b/SharpCompress/IO/MarkingBinaryReader.cs index a9a5d1be..4864309f 100644 --- a/SharpCompress/IO/MarkingBinaryReader.cs +++ b/SharpCompress/IO/MarkingBinaryReader.cs @@ -21,17 +21,17 @@ namespace SharpCompress.IO public override int Read() { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override int Read(byte[] buffer, int index, int count) { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override int Read(char[] buffer, int index, int count) { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override bool ReadBoolean() @@ -57,12 +57,12 @@ namespace SharpCompress.IO public override char ReadChar() { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override char[] ReadChars(int count) { - throw new NotSupportedException(); + throw new NotImplementedException(); } #if !PORTABLE @@ -115,7 +115,7 @@ namespace SharpCompress.IO public override string ReadString() { - throw new NotSupportedException(); + throw new NotImplementedException(); } public override ushort ReadUInt16() diff --git a/SharpCompress/IO/ReadOnlySubStream.cs b/SharpCompress/IO/ReadOnlySubStream.cs index 21b7dd76..5761fdb7 100644 --- a/SharpCompress/IO/ReadOnlySubStream.cs +++ b/SharpCompress/IO/ReadOnlySubStream.cs @@ -48,18 +48,18 @@ namespace SharpCompress.IO public override void Flush() { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override long Length { - get { throw new System.NotSupportedException(); } + get { throw new System.NotImplementedException(); } } public override long Position { - get { throw new System.NotSupportedException(); } - set { throw new System.NotSupportedException(); } + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } } public override int Read(byte[] buffer, int offset, int count) @@ -78,17 +78,17 @@ namespace SharpCompress.IO public override long Seek(long offset, SeekOrigin origin) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override void SetLength(long value) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override void Write(byte[] buffer, int offset, int count) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } } } \ No newline at end of file diff --git a/SharpCompress/IO/RewindableStream.cs b/SharpCompress/IO/RewindableStream.cs index 7946eec6..6e8fe060 100644 --- a/SharpCompress/IO/RewindableStream.cs +++ b/SharpCompress/IO/RewindableStream.cs @@ -84,12 +84,12 @@ namespace SharpCompress.IO public override void Flush() { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override long Length { - get { throw new System.NotSupportedException(); } + get { throw new System.NotImplementedException(); } } public override long Position @@ -147,17 +147,17 @@ namespace SharpCompress.IO public override long Seek(long offset, SeekOrigin origin) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override void SetLength(long value) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } public override void Write(byte[] buffer, int offset, int count) { - throw new System.NotSupportedException(); + throw new System.NotImplementedException(); } } } \ No newline at end of file