Package org.python.core.io
Class TextIOInputStream
java.lang.Object
java.io.InputStream
org.python.core.io.TextIOInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An InputStream tie-in to a TextIOBase.
-
Constructor Summary
ConstructorDescriptionTextIOInputStream
(TextIOBase textIO) Creates an InputStream wrapper to a given TextIOBase. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
TextIOInputStream
Creates an InputStream wrapper to a given TextIOBase.- Parameters:
textIO
- a TextIOBase
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-