sunlabs.brazil.handler
Class PushHandler.Split
public static
class
PushHandler.Split
extends Object
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.
Method Summary |
String | content()
Get the content as a string |
String | header()
Return the header as a string |
int | length()
Return the content length |
String | name()
get the part name |
boolean | nextPart()
Return true if there is a next part |
int | start()
return the index into the start of the data for this part |
public Split(byte[] bytes)
create a new multipart form thingy
public String content()
Get the content as a string
public String header()
Return the header as a string
public int length()
Return the content length
public String name()
get the part name
public boolean nextPart()
Return true if there is a next part
public int start()
return the index into the start of the data for this part