Class SafeInputStream
java.lang.Object
java.io.InputStream
org.keycloak.connections.httpclient.SafeInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Limit the amount of data read to prevent a
OutOfMemoryError
.- Author:
- Alexander Schwartz
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SafeInputStream
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-