|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.ridc.model.serialize.MultipartPostBinderSerializer
public class MultipartPostBinderSerializer
Serializes a binder over a multipart post
Constructor Summary | |
---|---|
MultipartPostBinderSerializer(DataBinder dataBinder) |
|
MultipartPostBinderSerializer(DataBinder dataBinder, java.lang.String encoding) |
Method Summary | |
---|---|
long |
countBytes() |
protected void |
createFilePostInfo() Add the file post header information to the map |
protected java.lang.String |
createFilePostInfo(java.lang.String name, TransferFile file) Create the post header for the file bytes send along in a multipart post |
protected void |
createPostStr() Package together the local data in a multipost manner |
java.lang.String |
getBreakString() |
protected byte[] |
getBytes(java.lang.String str) Utility function to obtain a byte stream based on the encoding set, or to the default system encoding if no encoding is set. |
DataBinder |
getDataBinder() |
java.lang.String |
getPostString() |
protected void |
prepareBoundary() Create a large, randomly generated boundary string for separation of files and data in this multipart post |
void |
prepareMultipartPost() Prepare this object for a multipart post |
protected void |
sendFiles(java.io.OutputStream out) Send along all files into the output stream |
void |
writeBinder(java.io.OutputStream out) Write the multipart post out to the given stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartPostBinderSerializer(DataBinder dataBinder)
public MultipartPostBinderSerializer(DataBinder dataBinder, java.lang.String encoding)
Method Detail |
---|
public DataBinder getDataBinder()
public java.lang.String getPostString()
public java.lang.String getBreakString()
public void prepareMultipartPost()
public long countBytes()
public void writeBinder(java.io.OutputStream out) throws java.io.IOException
out
- the output streamjava.io.IOException
protected void prepareBoundary()
protected void createPostStr()
protected void createFilePostInfo()
protected java.lang.String createFilePostInfo(java.lang.String name, TransferFile file)
protected void sendFiles(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
protected byte[] getBytes(java.lang.String str) throws java.io.UnsupportedEncodingException
str
- the string to examinejava.io.UnsupportedEncodingException
|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |