|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectthinwire.ui.FileChooser.FileInfo
public static class FileChooser.FileInfo
FileInfo is a class containing the name of the file
uploaded and its InputStream. It also contains
convenience methods for saving the file.
| Constructor Summary | |
|---|---|
FileChooser.FileInfo()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
void |
saveToFile(java.io.File file)
Writes the uploaded file to the specified File. |
void |
saveToFile(java.lang.String fileName)
Writes the uploaded file to a new File at the
specified location relative to the application base path. |
void |
setDescription(java.lang.String description)
For convenience, an arbitrary description can be assigned to each file uploaded. |
void |
setInputStream(java.io.InputStream is)
|
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileChooser.FileInfo()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream is)
public void saveToFile(java.lang.String fileName)
File at the
specified location relative to the application base path.
fileName - public void saveToFile(java.io.File file)
File.
file -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||