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

com.bytezone.dm3270.buffers.AbstractReplyBuffer 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.buffers;

import java.util.Optional;

public abstract class AbstractReplyBuffer extends AbstractBuffer implements ReplyBuffer {

  private Buffer reply;

  protected AbstractReplyBuffer() {
  }

  public AbstractReplyBuffer(byte[] buffer, int offset, int length) {
    super(buffer, offset, length);
  }

  @Override
  public void setReply(Buffer reply) {
    this.reply = reply;
  }

  @Override
  public Optional getReply() {
    return reply == null ? Optional.empty() : Optional.of(reply);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy