public final class ReaderOf extends Reader
Reader
.
There is no thread-safety guarantee.
Constructor and Description |
---|
ReaderOf(byte[] bytes)
Ctor.
|
ReaderOf(Bytes bytes)
Ctor.
|
ReaderOf(char... chars)
Ctor.
|
ReaderOf(File file)
Ctor.
|
ReaderOf(Input input)
Ctor.
|
ReaderOf(Input input,
Charset charset)
Ctor.
|
ReaderOf(InputStream stream)
Ctor.
|
ReaderOf(InputStream stream,
Charset charset)
Ctor.
|
ReaderOf(Path path)
Ctor.
|
ReaderOf(String text)
Ctor.
|
ReaderOf(Text text)
Ctor.
|
ReaderOf(URI uri)
Ctor.
|
ReaderOf(URL url)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(char[] cbuf,
int off,
int len) |
public ReaderOf(char... chars)
chars
- Charspublic ReaderOf(byte[] bytes)
bytes
- Bytespublic ReaderOf(Path path)
path
- The pathpublic ReaderOf(File file)
file
- The filepublic ReaderOf(URL url)
url
- The URLpublic ReaderOf(URI uri)
uri
- The URIpublic ReaderOf(Bytes bytes)
bytes
- The textpublic ReaderOf(Text text)
text
- The textpublic ReaderOf(String text)
text
- The textpublic ReaderOf(Input input)
input
- The inputpublic ReaderOf(Input input, Charset charset)
input
- The inputcharset
- The charsetpublic ReaderOf(InputStream stream)
stream
- The streampublic ReaderOf(InputStream stream, Charset charset)
stream
- The streamcharset
- The charsetpublic int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2017 Cactoos. All rights reserved.