Home | History | Annotate | Download | only in command

Lines Matching refs:file

5  * you may not use this file except in compliance with the License.

30 * CommandHandler for the RETR command. Returns the contents of the specified file on the
34 * The <code>file</code> property specifies the pathname for the file whose contents should
35 * be returned from this command. The file path is relative to the CLASSPATH (using the
38 * An exception is thrown if the <code>file</code> property has not been set or if the specified
39 * file does not exist or cannot be read.
43 * <li>{@link #PATHNAME_KEY} ("pathname") - the pathname of the file submitted on the invocation (the first command parameter)
54 private String file;
63 * Create new instance using the specified file pathname
65 * @param file - the path to the file
66 * @throws AssertFailedException - if the file is null
68 public FileRetrCommandHandler(String file) {
69 setFile(file);
76 Assert.notNull(file, "file");
84 InputStream inputStream = getClass().getClassLoader().getResourceAsStream(file);
85 Assert.notNull(inputStream, "InputStream for [" + file + "]");
100 * Set the path of the file whose contents should be returned when this command is
103 * @param file - the path to the file
104 * @throws AssertFailedException - if the file is null
106 public void setFile(String file) {
107 Assert.notNull(file, "file");
108 this.file = file;