Package org.apache.commons.io.input
Class UnsynchronizedReader
java.lang.Object
java.io.Reader
org.apache.commons.io.input.UnsynchronizedReader
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Readable
- Direct Known Subclasses:
- UnsynchronizedBufferedReader
A 
Reader without any of the superclass' synchronization.- Since:
- 2.17.0
- 
Constructor Details- 
UnsynchronizedReaderpublic UnsynchronizedReader()Constructs a new instance.
 
- 
- 
Method Details- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Reader
- Throws:
- IOException
 
- 
isClosedTests whether this instance is closed; ifclose()completed successfully.- Returns:
- whether this instance is closed.
 
- 
setClosedSets whether this instance is closed.- Parameters:
- closed- whether this instance is closed.
 
- 
skipSkips characters by reading from this instance. This method will block until:- some characters are available,
- an I/O error occurs, or
- the end of the stream is reached.
 - Overrides:
- skipin class- Reader
- Parameters:
- n- The number of characters to skip.
- Returns:
- The number of characters actually skipped.
- Throws:
- IllegalArgumentException- If- nis negative.
- IOException- If an I/O error occurs.
 
 
-