public PdxWriter writeUnreadFields(PdxUnreadFields unread) { if (fieldsWritten()) { throw new PdxFieldAlreadyExistsException("writeUnreadFields must be called before any other fields are written."); } this.unreadData = (PdxUnreadData)unread; return this; }
public PdxWriter writeUnreadFields(PdxUnreadFields unread) { if (fieldsWritten()) { throw new PdxFieldAlreadyExistsException("writeUnreadFields must be called before any other fields are written."); } this.unreadData = (PdxUnreadData)unread; return this; }
public void addField(PdxField ft) { if (this.fieldsMap.put(ft.getFieldName(), ft) != null) { throw new PdxFieldAlreadyExistsException("The field \"" + ft.getFieldName() + "\" already exists."); } this.fields.add(ft); }
public void addField(PdxField ft) { if (this.fieldsMap.put(ft.getFieldName(), ft) != null) { throw new PdxFieldAlreadyExistsException("The field \"" + ft.getFieldName() + "\" already exists."); } this.fields.add(ft); }
public void sendTo(PdxWriterImpl writer) { if (isEmpty()) return; int [] indexes = this.unreadType.getUnreadFieldIndexes(); int i = 0; while (i < this.unreadData.length) { int idx = indexes[i]; byte[] data = this.unreadData[i]; PdxField ft = this.unreadType.getPdxFieldByIndex(idx); try { writer.writeRawField(ft, data); } catch (PdxFieldAlreadyExistsException ex) { // fix for bug 43133 throw new PdxFieldAlreadyExistsException("Check the toData and fromData for " + this.unreadType.getClassName() + " to see if the field \"" + ft.getFieldName() + "\" is spelled differently."); } i++; } }
public void sendTo(PdxWriterImpl writer) { if (isEmpty()) return; int [] indexes = this.unreadType.getUnreadFieldIndexes(); int i = 0; while (i < this.unreadData.length) { int idx = indexes[i]; byte[] data = this.unreadData[i]; PdxField ft = this.unreadType.getPdxFieldByIndex(idx); try { writer.writeRawField(ft, data); } catch (PdxFieldAlreadyExistsException ex) { // fix for bug 43133 throw new PdxFieldAlreadyExistsException("Check the toData and fromData for " + this.unreadType.getClassName() + " to see if the field \"" + ft.getFieldName() + "\" is spelled differently."); } i++; } }