Refine search
private void writeObject(ObjectOutputStream stream) throws IOException { // Emulate loadFactor field for other implementations to read ObjectOutputStream.PutField fields = stream.putFields(); fields.put("loadFactor", DEFAULT_LOAD_FACTOR); stream.writeFields(); stream.writeInt(table.length); // Capacity stream.writeInt(size); for (Entry<K, V> e : entrySet()) { stream.writeObject(e.getKey()); stream.writeObject(e.getValue()); } }
ObjectOutputStream.PutField putFields = out.putFields(); putFields.put("source", sourceBean); putFields.put("children", map); out.writeFields(); out.writeObject(p);
private synchronized void writeObject(ObjectOutputStream out) throws IOException { Hashtable<String, BundlePermission> hashtable = new Hashtable<String, BundlePermission>(permissions); ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", hashtable); pfields.put("all_allowed", all_allowed); out.writeFields(); }
/** {@inheritDoc} */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); ObjectOutputStream.PutField fields = stream.putFields(); fields.put("name", "test"); stream.writeFields(); } }
ObjectOutputStream.PutField fields = stream.putFields(); fields.put("dstSavings", dstSavings); fields.put("endDay", sEndDay); fields.put("endDayOfWeek", sEndDayOfWeek); fields.put("endMode", endMode); fields.put("endMonth", endMonth); fields.put("endTime", endTime); fields.put("monthLength", GregorianCalendar.DaysInMonth); fields.put("rawOffset", rawOffset); fields.put("serialVersionOnStream", 1); fields.put("startDay", sStartDay); fields.put("startDayOfWeek", sStartDayOfWeek); fields.put("startMode", startMode); fields.put("startMonth", startMonth); fields.put("startTime", startTime); fields.put("startYear", startYear); fields.put("useDaylight", useDaylight); stream.writeFields(); stream.writeInt(4); byte[] values = new byte[4]; values[0] = (byte) startDay;
/** Writes the common fields and the state of refresher. */ private void writeObject(ObjectOutputStream oos) throws IOException { ObjectOutputStream.PutField fields = oos.putFields(); fields.put("change", change); // NOI18N fields.put("info", info); // NOI18N fields.put("attr", attr); // NOI18N fields.put("list", list); // NOI18N fields.put("transfer", transfer); // NOI18N oos.writeFields(); oos.writeInt(getRefreshTime()); }
private synchronized void writeObject(ObjectOutputStream out) throws IOException { Hashtable<String, AdminPermission> hashtable = new Hashtable<String, AdminPermission>(permissions); ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", hashtable); pfields.put("all_allowed", all_allowed); out.writeFields(); }
private void writeObject(ObjectOutputStream stream) throws IOException { stream.putFields().put("comparator", comparator()); stream.writeFields(); stream.writeInt(size); for (Map.Entry<K, V> entry : entrySet()) { stream.writeObject(entry.getKey()); stream.writeObject(entry.getValue()); } }
private synchronized void writeObject(ObjectOutputStream out) throws IOException { Hashtable<String, TopicPermission> hashtable = new Hashtable<String, TopicPermission>(permissions); ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", hashtable); pfields.put("all_allowed", all_allowed); out.writeFields(); }
private synchronized void writeObject(ObjectOutputStream stream) throws IOException { // Emulate loadFactor field for other implementations to read ObjectOutputStream.PutField fields = stream.putFields(); fields.put("threshold", (int) (DEFAULT_LOAD_FACTOR * table.length)); fields.put("loadFactor", DEFAULT_LOAD_FACTOR); stream.writeFields(); stream.writeInt(table.length); // Capacity stream.writeInt(size); for (Entry<K, V> e : entrySet()) { stream.writeObject(e.getKey()); stream.writeObject(e.getValue()); } }
/** * @param s Object output stream. */ private void writeObject(ObjectOutputStream s) throws IOException { s.putFields().put("field1", 1); s.putFields().put("field2", 2); s.writeFields(); s.writeObject(null); }
private synchronized void writeObject(ObjectOutputStream out) throws IOException { ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", permissions); pfields.put("all_allowed", all_allowed); out.writeFields(); }
private void writeObject(ObjectOutputStream stream) throws IOException { // Emulate loadFactor field for other implementations to read ObjectOutputStream.PutField fields = stream.putFields(); fields.put("loadFactor", DEFAULT_LOAD_FACTOR); stream.writeFields(); stream.writeInt(table.length); // Capacity stream.writeInt(size); for (Entry<K, V> e : entrySet()) { stream.writeObject(e.getKey()); stream.writeObject(e.getValue()); } }
/** * @param s Object output stream. */ private void writeObject(ObjectOutputStream s) throws IOException { s.putFields().put("field1", 1); s.putFields().put("field2", 2); s.writeFields(); s.writeObject(null); }
private synchronized void writeObject(ObjectOutputStream out) throws IOException { Hashtable<String, PackagePermission> hashtable = new Hashtable<String, PackagePermission>(permissions); ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", hashtable); pfields.put("all_allowed", all_allowed); pfields.put("filterPermissions", filterPermissions); out.writeFields(); }
private void writeObject(ObjectOutputStream stream) throws IOException { // Emulate loadFactor field for other implementations to read ObjectOutputStream.PutField fields = stream.putFields(); fields.put("loadFactor", DEFAULT_LOAD_FACTOR); stream.writeFields(); stream.writeInt(table.length); // Capacity stream.writeInt(size); for (Entry<K, V> e : entrySet()) { stream.writeObject(e.getKey()); stream.writeObject(e.getValue()); } }
for (int i = 0; i < segments.length; ++i) segments[i] = new Segment<K,V>(LOAD_FACTOR); java.io.ObjectOutputStream.PutField streamFields = s.putFields(); streamFields.put("segments", segments); streamFields.put("segmentShift", segmentShift); streamFields.put("segmentMask", segmentMask); s.writeFields(); Traverser<K,V> it = new Traverser<K,V>(t, t.length, 0, t.length); for (Node<K,V> p; (p = it.advance()) != null; ) { s.writeObject(p.key); s.writeObject(p.val);
private synchronized void writeObject(ObjectOutputStream out) throws IOException { Hashtable<String, ServicePermission> hashtable = new Hashtable<String, ServicePermission>(permissions); ObjectOutputStream.PutField pfields = out.putFields(); pfields.put("permissions", hashtable); pfields.put("all_allowed", all_allowed); pfields.put("filterPermissions", filterPermissions); out.writeFields(); }