/** * 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 dsmlreader = new DSMLReader(istream); readObject = dsmlreader.readMessage(); } catch (LDAPLocalException e) {
DSMLReader reader = new DSMLReader(post.getResponseBodyAsStream());
DSMLReader reader = new DSMLReader(post.getResponseBodyAsStream());