Package org.apache.commons.net.ftp
Class FTPClient.CSL
- java.lang.Object
-
- org.apache.commons.net.ftp.FTPClient.CSL
-
- All Implemented Interfaces:
java.util.EventListener
,CopyStreamListener
- Enclosing class:
- FTPClient
private static class FTPClient.CSL extends java.lang.Object implements CopyStreamListener
-
-
Field Summary
Fields Modifier and Type Field Description private int
acksAcked
private int
currentSoTimeoutMillis
private long
idleMillis
private int
ioErrors
private long
lastIdleTimeMillis
private int
notAcked
private FTPClient
parent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bytesTransferred(long totalBytesTransferred, int bytesTransferred, long streamSize)
This method is not part of the JavaBeans model and is used by the static methods in the org.apache.commons.io.Util class for efficiency.void
bytesTransferred(CopyStreamEvent event)
This method is invoked by a CopyStreamEvent source after copying a block of bytes from a stream.(package private) int[]
cleanUp()
-
-
-
Field Detail
-
parent
private final FTPClient parent
-
idleMillis
private final long idleMillis
-
currentSoTimeoutMillis
private final int currentSoTimeoutMillis
-
lastIdleTimeMillis
private long lastIdleTimeMillis
-
notAcked
private int notAcked
-
acksAcked
private int acksAcked
-
ioErrors
private int ioErrors
-
-
Constructor Detail
-
CSL
CSL(FTPClient parent, java.time.Duration idleDuration, java.time.Duration maxWaitDuration) throws java.net.SocketException
- Throws:
java.net.SocketException
-
-
Method Detail
-
bytesTransferred
public void bytesTransferred(CopyStreamEvent event)
Description copied from interface:CopyStreamListener
This method is invoked by a CopyStreamEvent source after copying a block of bytes from a stream. The CopyStreamEvent will contain the total number of bytes transferred so far and the number of bytes transferred in the last write.- Specified by:
bytesTransferred
in interfaceCopyStreamListener
- Parameters:
event
- The CopyStreamEvent fired by the copying of a block of bytes.
-
bytesTransferred
public void bytesTransferred(long totalBytesTransferred, int bytesTransferred, long streamSize)
Description copied from interface:CopyStreamListener
This method is not part of the JavaBeans model and is used by the static methods in the org.apache.commons.io.Util class for efficiency. It is invoked after a block of bytes to inform the listener of the transfer.- Specified by:
bytesTransferred
in interfaceCopyStreamListener
- Parameters:
totalBytesTransferred
- The total number of bytes transferred so far by the copy operation.bytesTransferred
- The number of bytes copied by the most recent write.streamSize
- The number of bytes in the stream being copied. This may be equal to CopyStreamEvent.UNKNOWN_STREAM_SIZE if the size is unknown.
-
cleanUp
int[] cleanUp() throws java.io.IOException
- Throws:
java.io.IOException
-
-