public class PortFinder extends Object implements Closeable
Constructor and Description |
---|
PortFinder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getPort(String portKey)
Gets the port number associated with the key provided.
|
String |
getPortAsString(String portKey)
Gets the port number associated with the key provided as a string.
|
public PortFinder()
public int getPort(String portKey)
portKey
- key of the port to look uppublic String getPortAsString(String portKey)
portKey
- key of the port to look uppublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
This work is licensed under a Creative Commons Attribution 4.0 International License.