venice
Class LoadFileCommand

java.lang.Object
  |
  +--venice.Command
        |
        +--venice.LoadCommand
              |
              +--venice.LoadFileCommand

public class LoadFileCommand
extends LoadCommand

Implements .venice-loading from a file.

Author:
Hannu Laurila

Field Summary
private  java.lang.String mSuppliedFilename
           
 
Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
LoadFileCommand()
          constructs a command which will ask user for the file name.
LoadFileCommand(java.lang.String inFilename)
          constructs a command which uses the supplied file name and does not ask user for the name. if null is given, file name will be asked.
 
Method Summary
protected  java.io.InputStream getInputStream()
          Opens file chooser dialog and opens the file specified by user for reading.
 
Methods inherited from class venice.LoadCommand
execute
 
Methods inherited from class venice.Command
getAppModule, setAppModule
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

mSuppliedFilename

private java.lang.String mSuppliedFilename
Constructor Detail

LoadFileCommand

public LoadFileCommand()
constructs a command which will ask user for the file name.

LoadFileCommand

public LoadFileCommand(java.lang.String inFilename)
constructs a command which uses the supplied file name and does not ask user for the name. if null is given, file name will be asked.
Method Detail

getInputStream

protected java.io.InputStream getInputStream()
Opens file chooser dialog and opens the file specified by user for reading.
Overrides:
getInputStream in class LoadCommand