com.horstmann.violet.framework
Interface FileService.Save

Enclosing class:
FileService

public static interface FileService.Save

A Save object encapsulates the stream and name of the file that the user selected for saving.


Method Summary
 java.lang.String getName()
          Gets the name of the file that the user selected.
 java.io.OutputStream getOutputStream()
          Gets the output stream corresponding to the user selection.
 

Method Detail

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Gets the output stream corresponding to the user selection.

Returns:
the output stream
Throws:
java.io.IOException

getName

java.lang.String getName()
                         throws java.io.IOException
Gets the name of the file that the user selected.

Returns:
the file name, or null if the file dialog is only displayed when the output stream is closed.
Throws:
java.io.IOException