Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


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

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.obj.HdaFilePart.TransferFilePartSource

All Implemented Interfaces:
org.apache.commons.httpclient.methods.multipart.PartSource
Enclosing class:
HdaFilePart

protected static class HdaFilePart.TransferFilePartSource
extends java.lang.Object
implements org.apache.commons.httpclient.methods.multipart.PartSource

Converts an IDataFile into a PartSource


Field Summary
protected  TransferFile m_transferFile
           

 

Constructor Summary
HdaFilePart.TransferFilePartSource(TransferFile transferFile)
           

 

Method Summary
 java.io.InputStream createInputStream()
          Gets a new InputStream for reading this source.
 java.lang.String getFileName()
          Gets the name of the file this source represents.
 long getLength()
          Gets the number of bytes contained in this source.

 

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

 

Field Detail

m_transferFile

protected TransferFile m_transferFile

Constructor Detail

HdaFilePart.TransferFilePartSource

public HdaFilePart.TransferFilePartSource(TransferFile transferFile)

Method Detail

getLength

public long getLength()
Gets the number of bytes contained in this source.
Specified by:
getLength in interface org.apache.commons.httpclient.methods.multipart.PartSource
Returns:
a value >= 0

getFileName

public java.lang.String getFileName()
Gets the name of the file this source represents.
Specified by:
getFileName in interface org.apache.commons.httpclient.methods.multipart.PartSource
Returns:
the fileName used for posting a MultiPart file part

createInputStream

public java.io.InputStream createInputStream()
                                      throws java.io.IOException
Gets a new InputStream for reading this source. This method can be called more than once and should therefore return a new stream every time.
Specified by:
createInputStream in interface org.apache.commons.httpclient.methods.multipart.PartSource
Returns:
a new InputStream
Throws:
java.io.IOException - if an error occurs when creating the InputStream

Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


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