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 void
close()
void
dispose()
-
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:
FileNotFoundException
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFileOutputStream
- Throws:
IOException
-
dispose
public void dispose() throws IOException
- Throws:
IOException
-
-