private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { s.defaultWriteObject(); for (int i = 0; i < size; i++) { s.writeChar(key[i]); s.writeInt(value[i]); } }
/** java.io.ObjectOutputStream#writeChar(int) */ public void test_writeCharI() throws Exception { // Test for method void java.io.ObjectOutputStream.writeChar(int) oos.writeChar('T'); oos.close(); ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); assertEquals("Wrote incorrect char value", 'T', ois.readChar()); }
private void writeObject(ObjectOutputStream stream) throws IOException { stream.writeChar(playerId); stream.writeObject(event); stream.writeObject(splitAction); stream.writeUTF(newOwner); stream.writeObject(leavers); }
/** * @serialData Default fields; the capacity of the map (<tt>int</tt>); the maps's entries * (<tt>char</tt>, <tt>Object</tt>). * @since 1.1 */ private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeInt(keys.length); CharKeyMapIterator i = entries(); while (i.hasNext()) { i.next(); s.writeChar(i.getKey()); s.writeObject(i.getValue()); } }
/* */ private void writeObject(ObjectOutputStream s) throws IOException { /* 1244 */ float[] key = this.key; /* 1245 */ char[] value = this.value; /* 1246 */ MapIterator i = new MapIterator(null); /* 1247 */ s.defaultWriteObject(); /* 1248 */ for (int j = this.size; j-- != 0; ) { /* 1249 */ int e = i.nextEntry(); /* 1250 */ s.writeFloat(key[e]); /* 1251 */ s.writeChar(value[e]); /* */ } /* */ }
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { final K key[] = this.key; final char value[] = this.value; final MapIterator i = new MapIterator(); s.defaultWriteObject(); for (int j = size, e; j-- != 0; ) { e = i.nextEntry(); s.writeObject(key[e]); s.writeChar(value[e]); } }
private void writeObject(ObjectOutputStream out) throws IOException { out.writeInt(CURRENT_SERIAL_VERSION); out.writeInt(string1Length); out.writeInt(string2Length); out.writeObject(string1); out.writeObject(string2); if (string1Blocks == null) { out.writeInt(NULL_INTEGER); } else { int size = string1Blocks.length; out.writeInt(size); for (int i = 0; i < size; i++) { out.writeObject(string1Blocks[i]); } } if (string2Blocks == null) { out.writeInt(NULL_INTEGER); } else { int size = string2Blocks.length; out.writeInt(size); for (int i = 0; i < size; i++) { out.writeObject(string2Blocks[i]); } } out.writeObject(string1Present); out.writeObject(string2Present); out.writeObject(lexicon); if (block1Indices == null) { out.writeInt(NULL_INTEGER); } else { int size = block1Indices.length; out.writeInt(size); for (int i = 0; i < size; i++) { out.writeInt(block1Indices[i]); } } if (block2Indices == null) { out.writeInt(NULL_INTEGER); } else { int size = block2Indices.length; out.writeInt(size); for (int i = 0; i < size; i++) { out.writeInt(block2Indices[i]); } } out.writeChar(delim); }
@Override public void writeChar(int val) throws IOException { out.writeChar(val); }
private void writeObject(java.io.ObjectOutputStream stream) throws IOException { stream.writeChar(val); stream.writeInt(taint); }