![JAR search and dependency download from the Maven repository](/logo.png)
org.easyb.plugin.remoting.RemoteUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of intellij-plugin Show documentation
Show all versions of intellij-plugin Show documentation
A plugin that enables easyb spec execution in IntelliJ
The newest version!
package org.easyb.plugin.remoting;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.ServerSocket;
public class RemoteUtils {
public static void safeClose(ServerSocket socket) {
try {
if (socket != null) {
socket.close();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public static void safeClose(Socket socket) {
try {
if (socket != null) {
socket.close();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public static void safeWriteObject(Object object, ObjectOutputStream outputStream) {
try {
outputStream.writeObject(object);
} catch (IOException e) {
e.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy