Package org.jdrupes.httpcodec.util
Class FormUrlDecoder
java.lang.Object
org.jdrupes.httpcodec.util.FormUrlDecoder
A decoder for URL-encoded form data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addData
(ByteBuffer buf) Add the data in the buffer to the form data.fields()
Return the fields decoded from the data that has been added byaddData(ByteBuffer)
.
-
Constructor Details
-
FormUrlDecoder
public FormUrlDecoder()
-
-
Method Details
-
addData
Add the data in the buffer to the form data.May be invoked several times if the form data is split across several buffers.
- Parameters:
buf
- the buffer with the data
-
fields
Return the fields decoded from the data that has been added byaddData(ByteBuffer)
.Invoking this method terminates the decoding, i.e.
addData(ByteBuffer)
should not be called again after this method has been invoked.- Returns:
- the decoded fields
-