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

com.bytezone.dm3270.commands.EraseAllUnprotectedCommand 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.commands;

import com.bytezone.dm3270.display.Screen;

public class EraseAllUnprotectedCommand extends Command {

  // This command has no WCC or data.
  public EraseAllUnprotectedCommand(byte[] buffer, int offset, int length) {
    super(buffer, offset, length);
    assert buffer[offset] == Command.ERASE_ALL_UNPROTECTED_0F
        || buffer[offset] == Command.ERASE_ALL_UNPROTECTED_6F;
  }

  @Override
  public void process(Screen screen) {
    screen.eraseAllUnprotected();
  }

  @Override
  public String getName() {
    return "Erase All Unprotected";
  }

  @Override
  public String toString() {
    return "EAU  :";
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy