public String[] getFields() { return fields.get(); }
@Override public String[] get() { final String zzString = readZZString(); return zzString.split("" + NUL); }
public void setExtra(final Map<String, String> extra) { this.extra.pointTo(KeyValueMap.toZZString(extra)); }
protected void set(ReadForm3 copy) { formName.set(copy.getFormName()); Optional<String[]> fieldNames = copy.getFieldNames(); if (fieldNames.isPresent()) { this.fieldNames.set(fieldNames.get()); } Optional<String> mediaName = copy.getMediaName(); if (mediaName.isPresent()) { this.mediaName.set(mediaName.get()); } mediaControl.set(copy.getMediaControl()); }
private String readZZString() { if (NULL.equals(this)) { return null; } for (int length = 2;; length++) { byte[] bytes = buffer(length).get(); if (bytes[bytes.length - 1] == NUL && bytes[bytes.length - 2] == NUL) { return new String(bytes, StandardCharsets.US_ASCII); } } }
@Override public void set(String[] value) { int length = 2; for (String each : value) { length += each.length() + 1; } byte[] dest = new byte[length]; int destPos = 0; for (String each : value) { byte[] src = each.getBytes(StandardCharsets.US_ASCII); System.arraycopy(src, 0, dest, destPos, src.length); destPos += src.length + 1; } pointTo(new ByteArray(dest)); }
protected void set(Form320 copy) { super.set(copy); frontTrack1Fields.set(copy.getFrontTrack1Fields()); fieldSeparatorFrontTrack1.set(copy.getFieldSeparatorFrontTrack1()); jIS1Track1Fields.set(copy.getJIS1Track1Fields()); jIS1Track3Fields.set(copy.getJIS1Track3Fields()); fieldSeparatorJIS1Track1.set(copy.getFieldSeparatorJIS1Track1()); fieldSeparatorJIS1Track3.set(copy.getFieldSeparatorJIS1Track3()); }
public String[] getFrontTrack1Fields() { return frontTrack1Fields.get(); }
public void setExtra(final Map<String, String> extra) { this.extra.pointTo(KeyValueMap.toZZString(extra)); }
protected void set(FormHeader3 copy) { formName.set(copy.getFormName()); base.set(copy.getBase()); unitX.set(copy.getUnitX()); unitY.set(copy.getUnitY()); width.set(copy.getWidth()); height.set(copy.getHeight()); alignment.set(copy.getAlignment()); orientation.set(copy.getOrientation()); offsetX.set(copy.getOffsetX()); offsetY.set(copy.getOffsetY()); versionMajor.set(copy.getVersionMajor()); versionMinor.set(copy.getVersionMinor()); Optional<String> userPrompt = copy.getUserPrompt(); if (userPrompt.isPresent()) { this.userPrompt.set(userPrompt.get()); } charSupport.set(copy.getCharSupport()); fields.set(copy.getFields()); }
public String[] getJIS1Track1Fields() { return jIS1Track1Fields.get(); }
public void setExtra(final Map<String, String> extra) { this.extra.pointTo(KeyValueMap.toZZString(extra)); }
public String[] getJIS1Track3Fields() { return jIS1Track3Fields.get(); }
public SIUPortEvent(final SIUPortEvent event) { this(); allocate(); portType.set(event.portType); portIndex.set(event.portIndex); portStatus.set(event.portStatus); extra.pointTo(KeyValueMap.toZZString(event.getExtra())); }
@Override public String toString() { if (NULL.equals(this)) { return ""; } return Arrays.toString(get()); } }
public SIUPortError(final SIUPortError portError) { this(); allocate(); portType.set(portError.portType); portIndex.set(portError.portIndex); this.portError.set(portError.portError); portStatus.set(portError.portStatus); extra.pointTo(KeyValueMap.toZZString(portError.getExtra())); }
public Optional<String[]> getFieldNames() { Optional<String[]> result = Optional.empty(); if (!Pointer.NULL.equals(fieldNames)) { result = Optional.of(fieldNames.get()); } return result; }
validationAlgorithms.set(pinCaps.validationAlgorithms); keyCheckModes.set(pinCaps.keyCheckModes); extra.pointTo(KeyValueMap.toZZString(pinCaps.getExtra()));