protected static class HdaFilePart.TransferFilePartSource extends Object implements org.apache.commons.httpclient.methods.multipart.PartSource
Modifier and Type | Field and Description |
---|---|
protected TransferFile |
m_transferFile |
Constructor and Description |
---|
TransferFilePartSource(TransferFile transferFile) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected TransferFile m_transferFile
public TransferFilePartSource(TransferFile transferFile)
public long getLength()
getLength
in interface org.apache.commons.httpclient.methods.multipart.PartSource
public String getFileName()
getFileName
in interface org.apache.commons.httpclient.methods.multipart.PartSource
public InputStream createInputStream() throws IOException
createInputStream
in interface org.apache.commons.httpclient.methods.multipart.PartSource
IOException
- if an error occurs when creating the InputStream