Package com.logicaldoc.ftp
Class FtpOutputStream
- java.lang.Object
 - 
- java.io.OutputStream
 - 
- java.io.FileOutputStream
 - 
- com.logicaldoc.ftp.FtpOutputStream
 
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,AutoCloseable
public class FtpOutputStream extends FileOutputStream
Special implementation of a Stream used to create new files. It initially uses a temporary file and when closed the document is stored in LogicalDOC.- Since:
 - 8.0
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FtpOutputStream(LogicalFtpFile ftpFile, File tmpFile, long offset) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()- 
Methods inherited from class java.io.FileOutputStream
getChannel, getFD, write, write, write 
- 
Methods inherited from class java.io.OutputStream
flush, nullOutputStream 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FtpOutputStream
public FtpOutputStream(LogicalFtpFile ftpFile, File tmpFile, long offset) throws FileNotFoundException, IOException
- Throws:
 FileNotFoundExceptionIOException
 
 - 
 
- 
Method Detail
- 
close
public void close() throws IOException- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classFileOutputStream- Throws:
 IOException
 
 - 
 
 -