@ThreadSafe
public class NoCloseReader
extends FilterReader
This is used to avoid closing a reader at the completion of some
processing. To finally close the original reader, either keep a reference to
it or call getReader().
| Constructor and Description |
|---|
NoCloseReader(Reader reader)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ignores any close request.
|
Reader |
getReader()
Gets the original reader.
|
public NoCloseReader(@Nonnull
Reader reader)
reader - The wrapped reader.public void close()
Ignores any close request.
close in interface Closeableclose in interface AutoCloseableclose in class FilterReader@Nonnull @CheckReturnValue public Reader getReader()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.