com.bytezone.dm3270.structuredfields.StructuredField 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.buffers.AbstractTN3270Command;
import com.bytezone.dm3270.display.Screen;
import com.bytezone.dm3270.utilities.Dm3270Utility;
public abstract class StructuredField extends AbstractTN3270Command {
public static final byte RESET_PARTITION = 0x00;
public static final byte READ_PARTITION = 0x01;
public static final byte ERASE_RESET = 0x03;
public static final byte SET_REPLY_MODE = 0x09;
public static final byte ACTIVATE_PARTITION = 0x0E;
public static final byte OUTBOUND_3270DS = 0x40;
public static final byte QUERY_REPLY = (byte) 0x81;
protected byte type;
public StructuredField(byte[] buffer, int offset, int length) {
super(buffer, offset, length);
type = buffer[offset];
}
@Override
public void process(Screen screen) {
}
@Override
public String toString() {
return String.format("StrF: %s", Dm3270Utility.toHex(data).substring(8));
}
}