|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface FormDataAdaptor
An interface to the data portion of a MultipartFormField.
This data is read in by readData and stored
somewhere for later access by the other functions.
A class implementing FormDataAdaptor needs to implement at least
the getData() and getSize() functions
but need not provide a URL or a File for its data.
| Method Summary | |
|---|---|
byte[] |
getData()
Return the data as a byte array. |
File |
getFile()
Return a File object pointing to the saved data or null if none exists. |
long |
getSize()
Return the size of the data. |
String |
getURL()
Return a url to the object or null if none exists. |
void |
readData(MultipartFormField field,
DelimitedBufferedInputStream in,
byte[] delim)
Read data from in until the delim is found and
save the data so that we can access it again. |
| Method Detail |
|---|
byte[] getData()
byte[]long getSize()
longFile getFile()
FileString getURL()
String or null
void readData(MultipartFormField field,
DelimitedBufferedInputStream in,
byte[] delim)
throws IOException
in until the delim is found and
save the data so that we can access it again.
field - a MultipartFormField to be readin - a DelimitedBufferedInputStream to read fromdelim - the delimitor to differentiate elements
IOException - if there is a problem reading the input
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||