thinwire.ui
Class FileChooser.FileInfo

java.lang.Object
  extended by thinwire.ui.FileChooser.FileInfo
Enclosing class:
FileChooser

public static class FileChooser.FileInfo
extends java.lang.Object

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

FileChooser.FileInfo

public FileChooser.FileInfo()
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)
For convenience, an arbitrary description can be assigned to each file uploaded.

Parameters:
description -

getInputStream

public java.io.InputStream getInputStream()

setInputStream

public void setInputStream(java.io.InputStream is)

saveToFile

public void saveToFile(java.lang.String fileName)
Writes the uploaded file to a new File at the specified location relative to the application base path.

Parameters:
fileName -

saveToFile

public void saveToFile(java.io.File file)
Writes the uploaded file to the specified File.

Parameters:
file -


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story