rabbit.proxy
Class MultiPartPipe

java.lang.Object
  extended by rabbit.proxy.MultiPartPipe

public class MultiPartPipe
extends Object

A helper class for dealing with multipart data.

Author:
Robert Olofsson

Constructor Summary
MultiPartPipe(String ctHeader)
          Create a new MultiPartPipe
 
Method Summary
 boolean isFinished()
          Check if the multipart data has been fully handled.
 void parseBuffer(ByteBuffer buf)
          Parse the buffer, will set the position and the limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartPipe

public MultiPartPipe(String ctHeader)
Create a new MultiPartPipe

Parameters:
ctHeader - the content type header hodling the boundary
Method Detail

parseBuffer

public void parseBuffer(ByteBuffer buf)
Parse the buffer, will set the position and the limit.

Parameters:
buf - the ByteBuffer to parse

isFinished

public boolean isFinished()
Check if the multipart data has been fully handled.

Returns:
true if all multipart data has been handled