View Javadoc

1   /**
2      This file is part of GoldenGate Project (named also GoldenGate or GG).
3   
4      Copyright 2009, Frederic Bregier, and individual contributors by the @author
5      tags. See the COPYRIGHT.txt in the distribution for a full listing of
6      individual contributors.
7   
8      All GoldenGate Project is free software: you can redistribute it and/or 
9      modify it under the terms of the GNU General Public License as published 
10     by the Free Software Foundation, either version 3 of the License, or
11     (at your option) any later version.
12  
13     GoldenGate is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU General Public License for more details.
17  
18     You should have received a copy of the GNU General Public License
19     along with GoldenGate .  If not, see <http://www.gnu.org/licenses/>.
20   */
21  package goldengate.ftp.filesystembased;
22  
23  import goldengate.common.command.exception.CommandAbstractException;
24  import goldengate.common.file.filesystembased.FilesystemBasedDirImpl;
25  import goldengate.common.file.filesystembased.FilesystemBasedOptsMLSxImpl;
26  import goldengate.ftp.core.file.FtpDir;
27  import goldengate.ftp.core.file.FtpFile;
28  import goldengate.ftp.core.session.FtpSession;
29  
30  /**
31   * Filesystem implementation of a FtpDir
32   *
33   * @author Frederic Bregier
34   *
35   */
36  public abstract class FilesystemBasedFtpDir extends FilesystemBasedDirImpl implements FtpDir {
37      /**
38       *
39       * @param session
40       */
41      public FilesystemBasedFtpDir(FtpSession session) {
42          super(session, new FilesystemBasedOptsMLSxImpl());
43      }
44  
45      public FtpFile setUniqueFile()
46          throws CommandAbstractException {
47          return (FtpFile) super.setUniqueFile();
48      }
49      public FtpFile setFile(String path,
50              boolean append) throws CommandAbstractException {
51          return (FtpFile) super.setFile(path, append);
52      }
53  }