package com.it_jaros.jscanner; import java.io.IOException; public class PortResult { private int port; private PortState state; private byte[] banner; private Exception exception; public int getPort() { return port; } public void setPort(int port) { this.port = port; } public PortState getState() { return state; } public void setState(PortState state) { this.state = state; } public byte[] getBanner() { return banner; } public void setBanner(byte[] banner) { this.banner = banner; } public void setException(IOException e) { exception = e; } public Exception getException() { return exception; } public static PortResult empty() { PortResult portResult = new PortResult(); portResult.setState(PortState.UNKNOWN); return portResult; } }