Example usage for java.io ObjectOutputStream writeFloat

List of usage examples for java.io ObjectOutputStream writeFloat

Introduction

In this page you can find the example usage for java.io ObjectOutputStream writeFloat.

Prototype

public void writeFloat(float val) throws IOException 

Source Link

Document

Writes a 32 bit float.

Usage

From source file:org.spout.api.geo.discrete.Point.java

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    out.writeFloat(this.x);
    out.writeFloat(this.y);
    out.writeFloat(this.z);
    out.writeUTF(world != null ? world.getName() : "null");
}