byteArrayOutputStream));
DefaultListModel model = new DefaultListModel();
model.add(0, 1);
model.add(1, 2);
ListDataHandler listDataHandler = new BasicComboBoxUI().new ListDataHandler();
model.addListDataListener(listDataHandler);
encoder.writeObject(model);
encoder.close();
DataInputStream stream = new DataInputStream(new ByteArrayInputStream(