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:
readin classInputStream- Throws:
IOException
-
readFully
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-