Skip to content

Commit 1e32ca2

Browse files
committed
Deprecate IdelOutputStream.
The spelling is incorrect. Use a default custom class instead of IdelOutputStream. DEVSIX-3491
1 parent 9a7f5ab commit 1e32ca2

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

io/src/main/java/com/itextpdf/io/util/IdelOutputStream.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ This file is part of the iText (R) project.
4646
import java.io.IOException;
4747
import java.io.OutputStream;
4848

49+
/**
50+
* @deprecated This output stream implementation will be removed in iText 7.2
51+
*/
52+
@Deprecated
4953
public class IdelOutputStream extends OutputStream {
5054
@Override
5155
public void write(int b) throws IOException {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2019 iText Group NV
4+
Authors: iText Software.
5+
6+
This program is offered under a commercial and under the AGPL license.
7+
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8+
9+
AGPL licensing:
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU Affero General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
15+
This program is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Affero General Public License for more details.
19+
20+
You should have received a copy of the GNU Affero General Public License
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
*/
23+
package com.itextpdf.kernel.utils;
24+
25+
import java.io.IOException;
26+
import java.io.OutputStream;
27+
28+
class IdleOutputStream extends OutputStream {
29+
@Override
30+
public void write(int b) throws IOException {
31+
32+
}
33+
}

kernel/src/main/java/com/itextpdf/kernel/utils/PdfResourceCounter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ This file is part of the iText (R) project.
4343
*/
4444
package com.itextpdf.kernel.utils;
4545

46-
import com.itextpdf.io.util.IdelOutputStream;
4746
import com.itextpdf.kernel.pdf.PdfArray;
4847
import com.itextpdf.kernel.pdf.PdfDictionary;
4948
import com.itextpdf.kernel.pdf.PdfIndirectReference;
@@ -151,7 +150,7 @@ public long getLength(Map<Integer, PdfObject> res) {
151150
continue;
152151
}
153152

154-
PdfOutputStream os = new PdfOutputStream(new IdelOutputStream());
153+
PdfOutputStream os = new PdfOutputStream(new IdleOutputStream());
155154

156155
os.write(resources.get(ref).clone());
157156
length += os.getCurrentPos();

0 commit comments

Comments
 (0)