/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input).getDocumentElement(); }
/** * Constructs a new XMap instance from an XML input stream. * * @param input an XML input stream. */ public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException { this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement(); }
/** * Read java.io.Serializable method. * * @param in the ObjectInputStream from which to read this XMap. * @throws IOException if readind fails. */ private void readObject(ObjectInputStream in) throws IOException { int size = in.readInt(); if (size > 0) { byte[] content = new byte[size]; in.readFully(content); Document doc = null; try { doc = getXMLUtil().loadDocument(new ByteArrayInputStream(content)); } catch (Exception e) { IOException ioe = new IOException("Could not deserialize this XMap"); ioe.initCause(e); throw ioe; } if (doc != null && doc.getDocumentElement() != null) this.root = doc.getDocumentElement(); } } }
/** * Read java.io.Serializable method. * * @param in the ObjectInputStream from which to read this XMap. * @throws IOException if readind fails. */ private void readObject(ObjectInputStream in) throws IOException { int size = in.readInt(); if (size > 0) { byte[] content = new byte[size]; in.readFully(content); Document doc = null; try { doc = getXMLUtil().loadDocument(new ByteArrayInputStream(content)); } catch (Exception e) { IOException ioe = new IOException("Could not deserialize this XMap"); ioe.initCause(e); throw ioe; } if (doc != null && doc.getDocumentElement() != null) this.root = doc.getDocumentElement(); } } }
/** * Read java.io.Serializable method. * * @param in the ObjectInputStream from which to read this XMap. * @throws IOException if readind fails. */ @SuppressWarnings("unused") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { int size = in.readInt(); if (size > 0) { byte[] content = new byte[size]; in.readFully(content); Document doc = null; try { doc = getXMLUtil().loadDocument(new ByteArrayInputStream(content)); } catch (Exception e) { IOException ioe = new IOException("Could not deserialize this XMap"); ioe.initCause(e); throw ioe; } if (doc != null && doc.getDocumentElement() != null) this.root = doc.getDocumentElement(); } } }
/** * Read java.io.Serializable method. * * @param in the ObjectInputStream from which to read this XMap. * @throws IOException if readind fails. */ private void readObject(ObjectInputStream in) throws IOException { int size = in.readInt(); if (size > 0) { byte[] content = new byte[size]; in.readFully(content); Document doc = null; try { doc = getXMLUtil().loadDocument(new ByteArrayInputStream(content)); } catch (Exception e) { IOException ioe = new IOException("Could not deserialize this XMap"); ioe.initCause(e); throw ioe; } if (doc != null && doc.getDocumentElement() != null) this.root = doc.getDocumentElement(); } } }