All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bytezone.dm3270.structuredfields.StructuredField Maven / Gradle / Ivy

Go to download

This is a trimmed down version of https://github.com/dmolony/dm3270 to be used as TN3270 client library

There is a newer version: 0.9.1
Show newest version
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));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy