IND testing
Build and Test j3270 / Build JAR & Run Tests (push) Successful in 1m5s

This commit is contained in:
2026-08-27 22:42:40 -04:00
parent 8654b72d8c
commit ff5dfda343
5 changed files with 108 additions and 3 deletions
@@ -694,8 +694,8 @@ public class DataStreamProcessor {
// ========== Read Modified ==========
private void processReadModified(boolean all) {
if (ftDft != null) {
ftDft.readModified();
if (ftDft != null && ftDft.readModified()) {
return;
}
outputPos = 0;
@@ -516,6 +516,10 @@ public class FTCut {
if (!config.isAscii() || !config.isRemapFlag()) {
ebc = localByte & 0xFF;
} else if (localByte < 0x20 || (localByte >= 0x80 && localByte < 0x9F)) {
ebc = localByte & 0xFF;
} else if (localByte == 0x9F) {
ebc = 0xFF;
} else {
int standardEbc = translator.unicodeToEbcdic((char) localByte);
if (standardEbc < 0) {
@@ -600,11 +600,14 @@ public class FTDft {
/**
* Handle a Read Modified command when upload data is pending.
* Retransmits the last saved buffer.
* @return true if a buffer was retransmitted, false otherwise.
*/
public void readModified() {
public boolean readModified() {
if (dftSaveBuf != null && dftSaveBufLen > 0) {
log.fine("DFT: Retransmitting saved buffer");
input.sendStructuredFieldData(dftSaveBuf);
return true;
}
return false;
}
}