@Test public void testWriteDouble() throws IOException { w.writeDouble(0.0); w.writeDouble(1.0); w.writeDouble(2.0); w.writeDouble(-1.0); w.writeDouble(-0.0); w.writeDouble(Double.NEGATIVE_INFINITY); w.writeDouble(Double.POSITIVE_INFINITY); w.writeDouble(Double.NaN); checkContents("38" + "0000000000000000" + "38" + "3FF0000000000000" + "38" + "4000000000000000" + "38" + "BFF0000000000000" + "38" + "8000000000000000" + "38" + "FFF0000000000000" + "38" + "7FF0000000000000" + "38" + "7FF8000000000000"); }
@Override public void writeDouble(double d) throws IOException { out.write(FLOAT_64); writeInt64(Double.doubleToRawLongBits(d)); }
BdfWriterImpl implements BdfWriter { @Override public void writeDouble(double d) throws IOException { out.write(FLOAT_64); writeInt64(Double.doubleToRawLongBits(d)); } }
BdfWriterImpl implements BdfWriter { @Override public void writeDouble(double d) throws IOException { out.write(FLOAT_64); writeInt64(Double.doubleToRawLongBits(d)); } BdfWriterImpl(OutputStream out); }
BdfWriterImpl implements BdfWriter { @Override public void writeDouble(double d) throws IOException { out.write(FLOAT_64); writeInt64(Double.doubleToRawLongBits(d)); } BdfWriterImpl(OutputStream out); @Override void flush(); @Override void close(); @Override void writeNull(); @Override void writeBoolean(boolean b); @Override void writeLong(long i); @Override void writeDouble(double d); @Override void writeString(String s); @Override void writeRaw(byte[] b); @Override void writeList(Collection<?> c); @Override void writeListStart(); @Override void writeListEnd(); @Override void writeDictionary(Map<?, ?> m); @Override void writeDictionaryStart(); @Override void writeDictionaryEnd(); }
BdfWriterImpl implements BdfWriter { @Override public void writeDouble(double d) throws IOException { out.write(FLOAT_64); writeInt64(Double.doubleToRawLongBits(d)); } BdfWriterImpl(OutputStream out); @Override void flush(); @Override void close(); @Override void writeNull(); @Override void writeBoolean(boolean b); @Override void writeLong(long i); @Override void writeDouble(double d); @Override void writeString(String s); @Override void writeRaw(byte[] b); @Override void writeList(Collection<?> c); @Override void writeListStart(); @Override void writeListEnd(); @Override void writeDictionary(Map<?, ?> m); @Override void writeDictionaryStart(); @Override void writeDictionaryEnd();  }