Package sunlabs.brazil.handler
Class PushHandler.Split
java.lang.Object
sunlabs.brazil.handler.PushHandler.Split
- Enclosing class:
- PushHandler
Split multipart data into its constituent pieces. Use byte[] so we can
handle (potentially) large amounts of binary data.
This acts as an iterator, stepping through the parts, extracting the appropriate
info for eacxh part.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Get the content as a stringheader()
Return the header as a stringint
length()
Return the content lengthname()
get the part nameboolean
nextPart()
Return true if there is a next partint
start()
return the index into the start of the data for this part
-
Constructor Details
-
Split
public Split(byte[] bytes) create a new multipart form thingy
-
-
Method Details
-
nextPart
public boolean nextPart()Return true if there is a next part -
content
Get the content as a string -
length
public int length()Return the content length -
start
public int start()return the index into the start of the data for this part -
header
Return the header as a string -
name
get the part name
-