MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / load

Method load

src/org/albite/albite/ColorScheme.java:317–325  ·  view source on GitHub ↗
(final DataInputStream din)

Source from the content-addressed store, hash-verified

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);

Callers 1

openRMSAndLoadDataMethod · 0.95

Calls 4

getSchemeMethod · 0.95
readByteMethod · 0.80
readBooleanMethod · 0.80
readFloatMethod · 0.80

Tested by

no test coverage detected