Home | History | Annotate | Download | only in command

Lines Matching refs:file

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

32 * CommandHandler for the RETR command. Returns the contents of the specified file on the
36 * The <code>file</code> property specifies the pathname for the file whose contents should
37 * be returned from this command. The file path is relative to the CLASSPATH (using the
40 * An exception is thrown if the <code>file</code> property has not been set or if the specified
41 * file does not exist or cannot be read.
45 * <li>{@link #PATHNAME_KEY} ("pathname") - the pathname of the file submitted on the invocation (the first command parameter)
58 private String file;
67 * Create new instance using the specified file pathname
68 * @param file - the path to the file
69 * @throws AssertFailedException - if the file is null
71 public FileRetrCommandHandler(String file) {
72 setFile(file);
79 Assert.notNull(file, "file");
87 InputStream inputStream = getClass().getClassLoader().getResourceAsStream(file);
88 Assert.notNull(inputStream, "InputStream for [" + file + "]");
103 * Set the path of the file whose contents should be returned when this command is
105 * @param file - the path to the file
106 * @throws AssertFailedException - if the file is null
108 public void setFile(String file) {
109 Assert.notNull(file, "file");
110 this.file = file;