|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.net.MultipartFile
@Deprecated public abstract class MultipartFile
Used to provide file data for a file parameter to send to a HTTP server using MultipartPoster. This class has three methods to open, to get data and to close something which is to be send as a file. These methods are called as follows:
For an example implementation reading a file see aFileToSend in the MultipartPoster source.
Constructor Summary | |
---|---|
MultipartFile()
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. |
abstract int |
getBytes(byte[] buf)
Deprecated. This must provide data for the file to sent. |
int |
getSize()
Deprecated. |
void |
open()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartFile()
Method Detail |
---|
public abstract int getBytes(byte[] buf) throws java.io.IOException
buf
- the buffer to copy data to,
java.io.IOException
- on any error.public void open() throws java.io.IOException
java.io.IOException
public int getSize()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |