| Home >> All >> com >> flexstor >> common >> io >> xfile >> [ ftp Javadoc ] |
Source code: com/flexstor/common/io/xfile/ftp/FtpWriter.java
1 /* 2 * FtpWriter.java 3 * 4 * Copyright $Date: 2003/08/11 02:22:47 $ FLEXSTOR.net Inc. 5 * 6 * This work is licensed for use and distribution under license terms found at 7 * http://www.flexstor.org/license.html 8 * 9 */ 10 11 package com.flexstor.common.io.xfile.ftp; 12 13 import java.io.BufferedWriter; 14 import java.io.IOException; 15 import java.io.Writer; 16 17 public class FtpWriter extends BufferedWriter 18 { 19 private FtpSession m_client; 20 21 FtpWriter(Writer out, FtpSession client) 22 throws IOException 23 { 24 super(out, 1024); 25 m_client = client; 26 } 27 28 public void close() throws IOException 29 { 30 super.close(); 31 m_client.closeTransferSocket(); 32 } 33 34 }