at.knowcenter.wag.egov.egiz.sig.connectors.moa
Class FilePartMR
java.lang.Object
org.apache.commons.httpclient.methods.multipart.Part
org.apache.commons.httpclient.methods.multipart.PartBase
org.apache.commons.httpclient.methods.multipart.FilePart
at.knowcenter.wag.egov.egiz.sig.connectors.moa.FilePartMR
- public class FilePartMR
- extends org.apache.commons.httpclient.methods.multipart.FilePart
| Fields inherited from class org.apache.commons.httpclient.methods.multipart.FilePart |
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING, FILE_NAME |
| Fields inherited from class org.apache.commons.httpclient.methods.multipart.Part |
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES |
|
Constructor Summary |
FilePartMR(String arg0,
File arg1)
|
FilePartMR(String arg0,
File arg1,
String arg2,
String arg3)
|
FilePartMR(String arg0,
org.apache.commons.httpclient.methods.multipart.PartSource arg1)
|
FilePartMR(String arg0,
org.apache.commons.httpclient.methods.multipart.PartSource arg1,
String arg2,
String arg3)
|
FilePartMR(String arg0,
String arg1,
File arg2)
|
FilePartMR(String arg0,
String arg1,
File arg2,
String arg3,
String arg4)
|
| Methods inherited from class org.apache.commons.httpclient.methods.multipart.FilePart |
getSource, lengthOfData, sendData, sendDispositionHeader |
| Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase |
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncoding |
| Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part |
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, sendContentTypeHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString |
CONTENT_ID
protected static final String CONTENT_ID
- Content dispostion characters
- See Also:
- Constant Field Values
CONTENT_ID_BYTES
protected static final byte[] CONTENT_ID_BYTES
- Content dispostion as a byte array
FilePartMR
public FilePartMR(String arg0,
org.apache.commons.httpclient.methods.multipart.PartSource arg1)
FilePartMR
public FilePartMR(String arg0,
File arg1)
throws FileNotFoundException
FilePartMR
public FilePartMR(String arg0,
String arg1,
File arg2)
throws FileNotFoundException
FilePartMR
public FilePartMR(String arg0,
org.apache.commons.httpclient.methods.multipart.PartSource arg1,
String arg2,
String arg3)
FilePartMR
public FilePartMR(String arg0,
File arg1,
String arg2,
String arg3)
throws FileNotFoundException
FilePartMR
public FilePartMR(String arg0,
String arg1,
File arg2,
String arg3,
String arg4)
throws FileNotFoundException
setContentID
public void setContentID(String contentid)
getContentID
public String getContentID()
sendContentIDHeader
protected void sendContentIDHeader(OutputStream out)
throws IOException
- Write the content id header to the specified output stream
- Parameters:
out - The output stream
- Throws:
IOException - If an IO problem occurs.
send
public void send(OutputStream out)
throws IOException
- Write all the data to the output stream.
If you override this method make sure to override
#length() as well
- Parameters:
out - The output stream
- Throws:
IOException - If an IO problem occurs.
length
public long length()
throws IOException
- Return the full length of all the data.
If you override this method make sure to override
#send(OutputStream) as well
- Returns:
- long The length.
- Throws:
IOException - If an IO problem occurs
Copyright © 2006-2010. All Rights Reserved.