com.bytezone.dm3270.extended.ResponseCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dm3270-lib Show documentation
Show all versions of dm3270-lib Show documentation
This is a trimmed down version of https://github.com/dmolony/dm3270 to be used as
TN3270 client library
package com.bytezone.dm3270.extended;
import com.bytezone.dm3270.Charset;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ResponseCommand extends AbstractExtendedCommand {
private static final Logger LOG = LoggerFactory.getLogger(ResponseCommand.class);
public ResponseCommand(CommandHeader commandHeader, byte[] buffer, int offset,
int length, Charset charset) {
super(commandHeader, buffer, offset, length);
if (length != 1) {
LOG.debug(charset.toHex(buffer, offset, length));
}
}
@Override
public String getName() {
return "Response";
}
@Override
public String toString() {
return String.format("Rsp: %02X", data[0]);
}
}