You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/11/26 12:17:11 UTC

[lucenenet] 05/05: Lucene.Net.Support.IO (BinaryReaderDataInput + BinaryReaderDataOutput): Deleted, as they are no longer in use.

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 019a257271285672a9a6efed7f550a5924e0c677
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Nov 23 16:13:43 2022 +0700

    Lucene.Net.Support.IO (BinaryReaderDataInput + BinaryReaderDataOutput): Deleted, as they are no longer in use.
---
 src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs | 50 ----------------------
 .../Support/IO/BinaryWriterDataOutput.cs           | 47 --------------------
 2 files changed, 97 deletions(-)

diff --git a/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs b/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs
deleted file mode 100644
index 1109784a6..000000000
--- a/src/Lucene.Net/Support/IO/BinaryReaderDataInput.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using Lucene.Net.Store;
-using System;
-using System.IO;
-
-namespace Lucene.Net.Support.IO
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-    internal sealed class BinaryReaderDataInput : DataInput, IDisposable
-    {
-        private readonly BinaryReader br;
-        public BinaryReaderDataInput(BinaryReader br)
-        {
-            this.br = br;
-        }
-       
-        public override byte ReadByte()
-        {
-            return br.ReadByte();
-        }
-
-        public override void ReadBytes(byte[] b, int offset, int len)
-        {
-            byte[] temp = br.ReadBytes(len);
-            for (int i = offset; i < (offset + len) && i < temp.Length; i++)
-            {
-                b[i] = temp[i];
-            }
-        }
-
-        public void Dispose()
-        {
-            br.Dispose();
-        }
-    }
-}
diff --git a/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs b/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs
deleted file mode 100644
index 255788eea..000000000
--- a/src/Lucene.Net/Support/IO/BinaryWriterDataOutput.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-using System.IO;
-using Lucene.Net.Store;
-
-namespace Lucene.Net.Support.IO
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-    internal sealed class BinaryWriterDataOutput : DataOutput, IDisposable
-    {
-        private readonly BinaryWriter bw;
-
-        public BinaryWriterDataOutput(BinaryWriter bw)
-        {
-            this.bw = bw;
-        }
-
-        public override void WriteByte(byte b)
-        {
-            bw.Write(b);
-        }
-
-        public override void WriteBytes(byte[] b, int offset, int length)
-        {
-            bw.Write(b, offset, length);
-        }
-
-        public void Dispose()
-        {
-            bw.Dispose();
-        }
-    }
-}