org.apache.excalibur.source.impl
Class FTPSource.FTPSourceOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.excalibur.source.impl.FTPSource.FTPSourceOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
- Enclosing class:
- FTPSource
private static class FTPSource.FTPSourceOutputStream
- extends java.io.ByteArrayOutputStream
Buffers the output in a byte array and only writes to the remote
FTP location at closing time.
Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
Methods inherited from class java.io.ByteArrayOutputStream |
reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
Methods inherited from class java.io.OutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_source
private final FTPSource m_source
m_isClosed
private boolean m_isClosed
FTPSource.FTPSourceOutputStream
FTPSource.FTPSourceOutputStream(FTPSource source)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.ByteArrayOutputStream
- Throws:
java.io.IOException
canCancel
boolean canCancel()
cancel
void cancel()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSource
FTPSource getSource()