public class

FtpConnectionClosingInputStream

extends InputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ com.mule.modules.ftplite.io.FtpConnectionClosingInputStream

Class Overview

A wrapper for the SocketInputStream, the idea is that when it reaches the end of the stream, the FTPClient connection gets closed.

Summary

[Expand]
Inherited Constants
From class java.io.InputStream
Fields
private final FTPClient client
private final InputStream stream
Public Constructors
FtpConnectionClosingInputStream(FTPClient client, InputStream stream)
Public Methods
int available()
void close()
InputStream getStream()
synchronized void mark(int i)
boolean markSupported()
int read(byte[] bytes)
int read()
int read(byte[] bytes, int i, int i2)
synchronized void reset()
long skip(long l)
[Expand]
Inherited Methods
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Fields

private final FTPClient client

private final InputStream stream

Public Constructors

public FtpConnectionClosingInputStream (FTPClient client, InputStream stream)

Parameters
client
stream

Public Methods

public int available ()

Throws
IOException

public void close ()

Throws
IOException

public InputStream getStream ()

public synchronized void mark (int i)

Parameters
i

public boolean markSupported ()

public int read (byte[] bytes)

Parameters
bytes
Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] bytes, int i, int i2)

Parameters
bytes
i
i2
Throws
IOException

public synchronized void reset ()

Throws
IOException

public long skip (long l)

Parameters
l
Throws
IOException