Skip navigation links
oracle.stellent.ridc.protocol.http.obj
Class HdaFilePart.TransferFilePartSource
java.lang.Object
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
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 |
m_transferFile
protected TransferFile m_transferFile
HdaFilePart.TransferFilePartSource
public HdaFilePart.TransferFilePartSource(TransferFile transferFile)
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
Copyright © 2008, 2010, Oracle and/or its affiliates. All rights reserved.