Search in sources :

Example 1 with ABSAssertException

use of abs.backend.java.lib.runtime.ABSAssertException in project abstools by abstools.

the class Socket method setSocket.

void setSocket(java.net.Socket socket) {
    __ABS_init();
    this.client_socket = socket;
    setupStream();
    try {
        input.setStream(new DataInputStream(client_socket.getInputStream()));
        output.setStream(new DataOutputStream(client_socket.getOutputStream()));
    } catch (IOException e) {
        throw new ABSAssertException(e.getLocalizedMessage());
    }
}
Also used : DataOutputStream(java.io.DataOutputStream) IOException(java.io.IOException) DataInputStream(java.io.DataInputStream) ABSAssertException(abs.backend.java.lib.runtime.ABSAssertException)

Aggregations

ABSAssertException (abs.backend.java.lib.runtime.ABSAssertException)1 DataInputStream (java.io.DataInputStream)1 DataOutputStream (java.io.DataOutputStream)1 IOException (java.io.IOException)1