Package io.fusionauth.http.server.io
Class HTTPInputStream
java.lang.Object
java.io.InputStream
io.fusionauth.http.server.io.HTTPInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An InputStream that handles the HTTP body, including body bytes that were read while the preamble was processed. This class also handles
chunked bodies by using a delegate InputStream that wraps the original source of the body bytes. The
ChunkedInputStream is the
delegate that this class leverages for chunking.- Author:
- Brian Pontarelli
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPInputStream(HTTPServerConfiguration configuration, HTTPRequest request, InputStream delegate, byte[] bodyBytes) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
HTTPInputStream
public HTTPInputStream(HTTPServerConfiguration configuration, HTTPRequest request, InputStream delegate, byte[] bodyBytes)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
purge
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-