comparison app/src/main/java/org/tn5250j/framework/tn5250/Stream5250.java @ 445:8fa8e73e2f5c

update to tn5250j version 0.7.7, svn r1270
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Jan 2016 15:52:25 -0800
parents d29cce60f393
children
comparison
equal deleted inserted replaced
444:5a74f1b7c1db 445:8fa8e73e2f5c
24 * 24 *
25 */ 25 */
26 package org.tn5250j.framework.tn5250; 26 package org.tn5250j.framework.tn5250;
27 27
28 public class Stream5250 { 28 public class Stream5250 {
29 public static final int OPCODE_OFFSET = 9;
29 30
30 public int streamSize; 31 public int streamSize;
31 public int opCode; 32 public int opCode;
32 public int dataStart; 33 public int dataStart;
33 public int pos; 34 public int pos;
58 */ 59 */
59 public void initialize(byte abyte0[]) { 60 public void initialize(byte abyte0[]) {
60 buffer = abyte0; 61 buffer = abyte0;
61 // size without end of record 0xFF 0xEF 62 // size without end of record 0xFF 0xEF
62 streamSize = (abyte0[0] & 0xff) << 8 | abyte0[1] & 0xff; 63 streamSize = (abyte0[0] & 0xff) << 8 | abyte0[1] & 0xff;
63 opCode = abyte0[9]; 64 opCode = abyte0[OPCODE_OFFSET];
64 dataStart = 6 + abyte0[6]; 65 dataStart = 6 + abyte0[6];
65 pos = dataStart; 66 pos = dataStart;
66 } 67 }
67 68
68 public final int getOpCode() { 69 public final int getOpCode() {