(final DataInputStream din)
| 315 | } |
| 316 | |
| 317 | public static ColorScheme load(final DataInputStream din) |
| 318 | throws IOException { |
| 319 | |
| 320 | final byte type = din.readByte(); |
| 321 | final boolean day = din.readBoolean(); |
| 322 | final float hue = din.readFloat(); |
| 323 | |
| 324 | return ColorScheme.getScheme(type, day, hue); |
| 325 | } |
| 326 | |
| 327 | public final void save(final DataOutputStream dout) throws IOException { |
| 328 | dout.writeByte(type); |
no test coverage detected