Skip navigation links

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

E17274-04


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

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

All Implemented Interfaces:
PartSource
Enclosing class:
HdaFilePart

protected static class HdaFilePart.TransferFilePartSource
extends Object
implements PartSource

Converts an IDataFile into a PartSource


Field Summary
protected  TransferFile m_transferFile
           

 

Constructor Summary
HdaFilePart.TransferFilePartSource(TransferFile transferFile)
           

 

Method Summary
 InputStream createInputStream()
          Gets a new InputStream for reading this source.
 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 PartSource
Returns:
a value >= 0

getFileName

public String getFileName()
Gets the name of the file this source represents.
Specified by:
getFileName in interface PartSource
Returns:
the fileName used for posting a MultiPart file part

createInputStream

public InputStream createInputStream()
                              throws 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 PartSource
Returns:
a new InputStream
Throws:
IOException - if an error occurs when creating the InputStream

Skip navigation links

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

E17274-04


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