/** * 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; }
DSMLReader reader = new DSMLReader(post.getResponseBodyAsStream()); ArrayList errors = reader.getErrors(); if (errors.size() > 0) { throw ((LDAPException) errors.get(0)); while ((msg = reader.readMessage()) != null) { results.add(msg);
DSMLReader reader = new DSMLReader(post.getResponseBodyAsStream()); ArrayList errors = reader.getErrors(); if (errors.size() > 0) { throw ((LDAPException) errors.get(0)); return reader.readMessage();
DSMLReader dsmlreader = new DSMLReader(istream); readObject = dsmlreader.readMessage(); } catch (LDAPLocalException e) { throw new IOException("LDAPLocalException"+ e);