sunlabs.brazil.handler
Class PushHandler.Split

java.lang.Object
  extended by sunlabs.brazil.handler.PushHandler.Split
Enclosing class:
PushHandler

public static class PushHandler.Split
extends java.lang.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.


Constructor Summary
PushHandler.Split(byte[] bytes)
          create a new multipart form thingy
 
Method Summary
 java.lang.String content()
          Get the content as a string
 java.lang.String header()
          Return the header as a string
 int length()
          Return the content length
 java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushHandler.Split

public PushHandler.Split(byte[] bytes)
create a new multipart form thingy

Method Detail

nextPart

public boolean nextPart()
Return true if there is a next part


content

public java.lang.String 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

public java.lang.String header()
Return the header as a string


name

public java.lang.String name()
get the part name