Skip navigation links
oracle.stellent.ridc.protocol.http.apache3.obj
Class HdaFilePart.TransferFilePartSource
java.lang.Object
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
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 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
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.