List of usage examples for java.io ObjectOutput writeFloat
void writeFloat(float v) throws IOException;
float
value, which is comprised of four bytes, to the output stream. From source file:TransferableScribblePane.java
/** * The following two methods implement the Externalizable interface. We use * Externalizable instead of Seralizable so we have full control over the data * format, and only write out the defined coordinates *//*from w w w . j av a 2s . c o m*/ public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException { out.writeFloat(x0); out.writeFloat(y0); out.writeInt(numsegs); for (int i = 0; i < numsegs * 2; i++) out.writeFloat(coords[i]); }
From source file:gnu.trove.map.custom_hash.TObjectFloatCustomHashMap.java
public void writeExternal(ObjectOutput out) throws IOException { // VERSION// w w w . j av a 2 s .c om out.writeByte(0); // SUPER super.writeExternal(out); // STRATEGY out.writeObject(strategy); // NO_ENTRY_VALUE out.writeFloat(no_entry_value); // NUMBER OF ENTRIES out.writeInt(_size); // ENTRIES for (int i = _set.length; i-- > 0;) { if (_set[i] != REMOVED && _set[i] != FREE) { out.writeObject(_set[i]); out.writeFloat(_values[i]); } } }
From source file:com.joey.software.regionSelectionToolkit.controlers.ImageProfileTool.java
@Override public void writeExternal(ObjectOutput out) throws IOException { int version = 1; out.writeInt(version);/* w ww .j av a 2 s. c om*/ out.writeInt(dataPoints); out.writeInt(crossColor.getRGB()); out.writeDouble(pointSize); out.writeInt(value.length); for (int i = 0; i < value.length; i++) { out.writeFloat(value[i]); } out.writeInt(selectionData.length); for (int i = 0; i < selectionData.length; i++) { out.writeFloat(selectionData[i]); } out.writeInt(useData.length); for (int i = 0; i < useData.length; i++) { out.writeBoolean(useData[i]); } out.writeDouble((Double) offset.getValue()); out.writeBoolean(showOffset.isSelected()); }
From source file:xbird.engine.remote.RemoteFocus.java
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_proxy);//from w w w. j ava2 s . co m out.writeInt(_fetchSize); out.writeFloat(_fetchGrow); out.writeInt(_fetchWatermark); out.writeObject(_fetchMethod); }