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 TypeMethodDescriptionvoid
close()
By "close", we will read from theInputStream
until we have finished the body, so that our InputStream has been read until the start of the next partition.int
read()
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:
read
in classInputStream
- Throws:
IOException
- if the inputstream is closed unexpectedly while reading.
-
readAllBytes
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
close
By "close", we will read from theInputStream
until we have finished the body, so that our InputStream has been read until the start of the next partition.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-