com.zakgof.tools.io.SimpleShortSerializer 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 SimpleShortSerializer implements ISimpleSerializer {
public static SimpleShortSerializer INSTANCE = new SimpleShortSerializer();
private SimpleShortSerializer() {
}
@Override
public void write(SimpleOutputStream out, Short val) throws IOException {
out.write(val);
}
@Override
public Short read(SimpleInputStream in) throws IOException {
return in.readShort();
}
}