rabbit.http
Class MultipartHeader
java.lang.Object
rabbit.http.GeneralHeader
rabbit.http.MultipartHeader
- All Implemented Interfaces:
- Storable
public class MultipartHeader
- extends GeneralHeader
A header suitable for multi part handling.
- Author:
- Robert Olofsson
Constructor Summary |
MultipartHeader(java.lang.String header)
Create a a new multi-part header using the given separator |
Method Summary |
void |
readExternal(java.io.ObjectInput in)
Read in the state of this header from the given input. |
java.lang.String |
toString()
Get the text value of this header |
void |
writeExternal(java.io.ObjectOutput out)
Write this MultipartHeader to the given output. |
Methods inherited from class rabbit.http.GeneralHeader |
addHeader, addHeader, copyHeader, fillBuffer, getHeader, getHeaders, read, removeHeader, removeValue, setExistingValue, setHeader, size, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultipartHeader
public MultipartHeader(java.lang.String header)
- Create a a new multi-part header using the given separator
- Parameters:
header
- the separator String.
toString
public java.lang.String toString()
- Description copied from class:
GeneralHeader
- Get the text value of this header
- Overrides:
toString
in class GeneralHeader
- Returns:
- a String describing this GeneralHeader.
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Write this MultipartHeader to the given output.
- Parameters:
out
- the output to write this header to.
- Throws:
java.io.IOException
- if writing fails
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read in the state of this header from the given input.
- Parameters:
in
- the input to read from
- Throws:
java.io.IOException
- if reading fails
java.lang.ClassNotFoundException
- if the input has bad data.