com.zakgof.tools.io.SimpleDoubleSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
Utility classes used internally by various zakgof projects.
package com.zakgof.tools.io;
import java.io.IOException;
public class SimpleDoubleSerializer implements ISimpleSerializer {
public static SimpleDoubleSerializer INSTANCE = new SimpleDoubleSerializer();
private SimpleDoubleSerializer() {
}
@Override
public void write(SimpleOutputStream out, Double val) throws IOException {
out.write(val);
}
@Override
public Double read(SimpleInputStream in) throws IOException {
return in.readDouble();
}
}