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.PartSourcepublic String getFileName()
getFileName in interface org.apache.commons.httpclient.methods.multipart.PartSourcepublic InputStream createInputStream() throws IOException
createInputStream in interface org.apache.commons.httpclient.methods.multipart.PartSourceIOException - if an error occurs when creating the InputStream