Package org.openrewrite.internal
Class EncodingDetectingInputStream
java.lang.Object
java.io.InputStream
org.openrewrite.internal.EncodingDetectingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionEncodingDetectingInputStream
(InputStream inputStream) EncodingDetectingInputStream
(InputStream inputStream, @Nullable Charset charset) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
EncodingDetectingInputStream
-
EncodingDetectingInputStream
-
-
Method Details
-
getCharset
-
isCharsetBomMarked
public boolean isCharsetBomMarked() -
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
readFully
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-