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