Class ReaderInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.arakhne.afc.inputoutput.stream.ReaderInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ReaderInputStream extends InputStream
An output stream that is writing inside a Writer.- Version:
- 17.0 2020-01-04 14:41:40
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- inputoutput
-
-
Constructor Summary
Constructors Constructor Description ReaderInputStream(Reader reader)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
mark(int readlimit)
boolean
markSupported()
int
read()
void
reset()
long
skip(long nb)
-
Methods inherited from class java.io.InputStream
available, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ReaderInputStream
public ReaderInputStream(Reader reader)
Construct.- Parameters:
reader
- the reader.
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
markSupported
@Pure public boolean markSupported()
- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
public long skip(long nb) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
-