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

com.bytezone.dm3270.orders.EraseUnprotectedToAddressOrder 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.15-lib
Show newest version
package com.bytezone.dm3270.orders;

import com.bytezone.dm3270.display.DisplayScreen;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class EraseUnprotectedToAddressOrder extends Order {

  private static final Logger LOG = LoggerFactory.getLogger(EraseUnprotectedToAddressOrder.class);

  private final BufferAddress stopAddress;

  public EraseUnprotectedToAddressOrder(byte[] buffer, int offset) {
    assert buffer[offset] == Order.ERASE_UNPROTECTED;
    stopAddress = new BufferAddress(buffer[offset + 1], buffer[offset + 2]);

    this.buffer = new byte[3];
    System.arraycopy(buffer, offset, this.buffer, 0, this.buffer.length);
  }

  @Override
  public void process(DisplayScreen screen) {
    LOG.warn("EraseUnprotectedToAddress not finished");
  }

  @Override
  public String toString() {
    return "EUA : " + stopAddress;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy