com.bytezone.dm3270.structuredfields.QueryReplySF 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.structuredfields;
import com.bytezone.dm3270.Charset;
import com.bytezone.dm3270.replyfield.QueryReplyField;
public class QueryReplySF extends StructuredField {
private final QueryReplyField queryReplyField;
public QueryReplySF(byte[] buffer, int offset, int length, Charset charset) {
super(buffer, offset, length, charset);
assert data[0] == StructuredField.QUERY_REPLY;
queryReplyField = QueryReplyField.getReplyField(data, charset);
}
public QueryReplyField getQueryReplyField() {
return queryReplyField;
}
@Override
public String toString() {
return String.format("Struct Field : %02X QueryReply%n", type)
+ queryReplyField;
}
}