java.lang.Object
java.io.InputStream
com.renomad.minum.web.UrlEncodedDataGetter
- All Implemented Interfaces:
Closeable,AutoCloseable
This class enables pulling key-value pairs one at a time
from the Request body. This enables the developer to pull data
incrementally, rather than reading it all into memory at once.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()By "close", we will read from theInputStreamuntil we have finished the body, so that our InputStream has been read until the start of the next partition.intread()Mostly similar behavior toInputStream.read()byte[]Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
read
Mostly similar behavior toInputStream.read()- Specified by:
readin classInputStream- Throws:
IOException- if the inputstream is closed unexpectedly while reading.
-
readAllBytes
- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
close
By "close", we will read from theInputStreamuntil we have finished the body, so that our InputStream has been read until the start of the next partition.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-