Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.protocol.http.apache3.obj
Class HdaFilePart

java.lang.Object
  extended by org.apache.commons.httpclient.methods.multipart.Part
      extended by org.apache.commons.httpclient.methods.multipart.PartBase
          extended by org.apache.commons.httpclient.methods.multipart.FilePart
              extended by oracle.stellent.ridc.protocol.http.apache3.obj.HdaFilePart


public class HdaFilePart
extends org.apache.commons.httpclient.methods.multipart.FilePart

Nested Class Summary
protected static class HdaFilePart.TransferFilePartSource
          Converts an IDataFile into a PartSource

 

Field Summary

 

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
HdaFilePart(java.lang.String name, TransferFile fileInfo)
          FilePart Constructor.
HdaFilePart(java.lang.String name, TransferFile fileInfo, java.lang.String charset)
          FilePart Constructor.

 

Method Summary
static byte[] getCharsetBytes(java.lang.String data, java.lang.String charset)
          Converts the specified string to byte array of ASCII characters.
 java.lang.String getTransferEncoding()
          Returns the transfer encoding of this part.
protected  void sendDispositionHeader(java.io.OutputStream out)
          Write the disposition header to the output stream

 

Methods inherited from class org.apache.commons.httpclient.methods.multipart.FilePart
getSource, lengthOfData, sendData

 

Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getCharSet, getContentType, getName, setCharSet, setContentType, setName, setTransferEncoding

 

Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

HdaFilePart

public HdaFilePart(java.lang.String name,
                   TransferFile fileInfo,
                   java.lang.String charset)
FilePart Constructor.
Parameters:
name - the parameter name
fileInfo - the IDataFile object describing the file to publish
charset - encoding for the filename

HdaFilePart

public HdaFilePart(java.lang.String name,
                   TransferFile fileInfo)
FilePart Constructor.
Parameters:
name - the parameter name
fileInfo - the IDataFile object describing the file to publish

Method Detail

getTransferEncoding

public java.lang.String getTransferEncoding()
Returns the transfer encoding of this part.
Overrides:
getTransferEncoding in class org.apache.commons.httpclient.methods.multipart.PartBase
Returns:
String The name.

sendDispositionHeader

protected void sendDispositionHeader(java.io.OutputStream out)
                              throws java.io.IOException
Write the disposition header to the output stream
Overrides:
sendDispositionHeader in class org.apache.commons.httpclient.methods.multipart.FilePart
Parameters:
out - The output stream
Throws:
java.io.IOException - If an IO problem occurs

getCharsetBytes

public static byte[] getCharsetBytes(java.lang.String data,
                                     java.lang.String charset)
Converts the specified string to byte array of ASCII characters.
Parameters:
data - the string to be encoded
charset - the charset of the encoding, if null, "UTF-8" is assumed
Returns:
The string as a byte array.
Since:
3.0

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.