@Test public void testListCanContainNull() throws IOException { List<Object> l = new ArrayList<>(); l.add(1); l.add(null); l.add(NULL_VALUE); l.add(2); w.writeList(l); checkContents("60" + "21" + "01" + "00" + "00" + "21" + "02" + "80"); }
@Override public void writeList(Collection<?> c) throws IOException { out.write(LIST); for (Object o : c) writeObject(o); out.write(END); }
BdfWriterImpl implements BdfWriter { @Override public void writeList(Collection<?> c) throws IOException { out.write(LIST); for (Object o : c) writeObject(o); out.write(END); } }
BdfWriterImpl implements BdfWriter { @Override public void writeList(Collection<?> c) throws IOException { out.write(LIST); for (Object o : c) writeObject(o); out.write(END); } BdfWriterImpl(OutputStream out); }
BdfWriterImpl implements BdfWriter { @Override public void writeList(Collection<?> c) throws IOException { out.write(LIST); for (Object o : c) writeObject(o); out.write(END); } 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 writeList(Collection<?> c) throws IOException { out.write(LIST); for (Object o : c) writeObject(o); out.write(END); } 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();  }