Class DataSocket
java.lang.Object
ecmwf.common.ftp.DataSocket
-
Constructor Summary
ConstructorsConstructorDescriptionDataSocket
(Socket socket, boolean dataAlive) Instantiates a new data socket. -
Method Summary
-
Constructor Details
-
DataSocket
Instantiates a new data socket.- Parameters:
socket
- the socketdataAlive
- the data alive
-
-
Method Details
-
getInputStream
Gets the input stream.- Returns:
- the input stream
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getOutputStream
Gets the output stream.- Parameters:
size
- the size- Returns:
- the output stream
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
Close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
close
Close.- Parameters:
force
- the force- Throws:
IOException
- Signals that an I/O exception has occurred.
-
finalize
-
isOpen
public boolean isOpen()Checks if is open.- Returns:
- true, if is open
-
toString
-