File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
spring-core/src/main/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public static OutputStream nonClosing(OutputStream out) {
240
240
}
241
241
242
242
243
- private static class NonClosingInputStream extends FilterInputStream {
243
+ private static final class NonClosingInputStream extends FilterInputStream {
244
244
245
245
public NonClosingInputStream (InputStream in ) {
246
246
super (in );
@@ -249,10 +249,30 @@ public NonClosingInputStream(InputStream in) {
249
249
@ Override
250
250
public void close () throws IOException {
251
251
}
252
+
253
+ @ Override
254
+ public byte [] readAllBytes () throws IOException {
255
+ return in .readAllBytes ();
256
+ }
257
+
258
+ @ Override
259
+ public byte [] readNBytes (int len ) throws IOException {
260
+ return in .readNBytes (len );
261
+ }
262
+
263
+ @ Override
264
+ public int readNBytes (byte [] b , int off , int len ) throws IOException {
265
+ return in .readNBytes (b , off , len );
266
+ }
267
+
268
+ @ Override
269
+ public long transferTo (OutputStream out ) throws IOException {
270
+ return in .transferTo (out );
271
+ }
252
272
}
253
273
254
274
255
- private static class NonClosingOutputStream extends FilterOutputStream {
275
+ private static final class NonClosingOutputStream extends FilterOutputStream {
256
276
257
277
public NonClosingOutputStream (OutputStream out ) {
258
278
super (out );
You can’t perform that action at this time.
0 commit comments