org.apache.commons.httpclient.methods.multipart
Class Part
java.lang.Object
|
+--org.apache.commons.httpclient.methods.multipart.Part
- Direct Known Subclasses:
- FilePart, StringPart
- public abstract class Part
- extends java.lang.Object
Abstract class for one Part of a multipart post object.
- Since:
- 2.0
- Author:
- Matthew Albright, Jeff Dever, Adrian Sutton
Constructor Summary |
Part()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Part
public Part()
getBoundary
public static java.lang.String getBoundary()
sendLastBoundary
public static void sendLastBoundary(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfLastBoundary
public static int lengthOfLastBoundary()
throws java.io.IOException
java.io.IOException
getName
public abstract java.lang.String getName()
sendStart
protected void sendStart(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfStart
protected int lengthOfStart()
throws java.io.IOException
java.io.IOException
sendHeader
protected void sendHeader(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfHeader
protected int lengthOfHeader()
throws java.io.IOException
java.io.IOException
sendEndOfHeader
protected void sendEndOfHeader(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfEndOfHeader
protected int lengthOfEndOfHeader()
throws java.io.IOException
java.io.IOException
sendData
protected abstract void sendData(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfData
protected abstract long lengthOfData()
throws java.io.IOException
java.io.IOException
sendEnd
protected void sendEnd(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
lengthOfEnd
protected int lengthOfEnd()
throws java.io.IOException
java.io.IOException
send
public final void send(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
length
public final long length()
throws java.io.IOException
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.