|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfileupload.transfer.client.http.CustomFilePartSource
public class CustomFilePartSource
Custom FilePartSource implementation.
Field Summary | |
---|---|
static boolean |
FULLNAME
|
Constructor Summary | |
---|---|
CustomFilePartSource(java.io.File file,
java.util.List listeners)
Constructor for CustomFilePartSource. |
|
CustomFilePartSource(java.io.File file,
java.util.List listeners,
java.lang.String altfilename)
Constructor for CustomFilePartSource. |
|
CustomFilePartSource(java.io.File file,
java.util.List listeners,
java.lang.String altfilename,
long resumeoffset)
Constructor for CustomFilePartSource. |
|
CustomFilePartSource(java.io.File file,
java.util.List listeners,
java.lang.String altfilename,
long resumeoffset,
long maxlength,
Conf cnf)
Constructor for CustomFilePartSource. |
|
CustomFilePartSource(java.lang.String fileName,
java.io.File file)
Constructor for FilePartSource. |
Method Summary | |
---|---|
void |
close()
|
java.io.InputStream |
createInputStream()
Return a new InputStream for the current filename. |
java.lang.String |
getFileName()
Return the current filename |
long |
getLength()
Return the length of the file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean FULLNAME
Constructor Detail |
---|
public CustomFilePartSource(java.io.File file, java.util.List listeners, java.lang.String altfilename, long resumeoffset, long maxlength, Conf cnf) throws java.io.FileNotFoundException
file
- file to uploadlisteners
- listeners to be notifiedaltfilename
- alternative filenameresumeoffset
- resume offsetmaxlength
- maximum lengthconf
-
java.io.FileNotFoundException
public CustomFilePartSource(java.io.File file, java.util.List listeners, java.lang.String altfilename, long resumeoffset) throws java.io.FileNotFoundException
file
- file to uploadlisteners
- listeners to be notifiedaltfilename
- alternative filenameresumeoffset
- resume offset
java.io.FileNotFoundException
public CustomFilePartSource(java.io.File file, java.util.List listeners, java.lang.String altfilename) throws java.io.FileNotFoundException
file
- listeners
- altfilename
- alternative filename
java.io.FileNotFoundException
public CustomFilePartSource(java.io.File file, java.util.List listeners) throws java.io.FileNotFoundException
file
- listeners
-
java.io.FileNotFoundException
public CustomFilePartSource(java.lang.String fileName, java.io.File file) throws java.io.FileNotFoundException
fileName
- the file name of the FilePartfile
- the source File for the FilePart
java.io.FileNotFoundException
- if the file does not exist or
cannot be readMethod Detail |
---|
public long getLength()
getLength
in interface org.apache.commons.httpclient.methods.multipart.PartSource
PartSource.getLength()
public java.lang.String getFileName()
getFileName
in interface org.apache.commons.httpclient.methods.multipart.PartSource
PartSource.getFileName()
public java.io.InputStream createInputStream() throws java.io.IOException
InputStream
for the current filename.
createInputStream
in interface org.apache.commons.httpclient.methods.multipart.PartSource
java.io.IOException
- If an IO problem occurs.PartSource.createInputStream()
public void close() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |