/** * This method is used to deserialize the DSML encoded representation of * this class. * @param input InputStream for the DSML formatted data. * @return Deserialized form of this class. * @throws IOException when serialization fails. */ public static Object readDSML(InputStream input) throws IOException { LDAPMessage msg = null; try { DSMLReader reader = new DSMLReader(input); msg = reader.readMessage(); } catch (LDAPLocalException e) { e.printStackTrace(); throw new IOException("LDAPLocalException"+ e); } return msg; }
try { DSMLReader dsmlreader = new DSMLReader(istream); readObject = dsmlreader.readMessage(); } catch (LDAPLocalException e) { throw new IOException("LDAPLocalException"+ e);
while ((msg = reader.readMessage()) != null) { results.add(msg);
return reader.readMessage();