Esempio n. 1
0
 // Special deserializer: read XML as deserialization
 private void readObject(java.io.ObjectInputStream in)
     throws java.io.IOException, ClassNotFoundException {
   try {
     init(comparators, runtimeVersion);
     String strDocument = in.readUTF();
     // System.out.println("strDocument='"+strDocument+"'");
     ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes());
     Document doc = GraphManager.createXmlDocument(bais, false);
     initOptions(Common.NO_DEFAULT_VALUES);
     initFromNode(doc, Common.NO_DEFAULT_VALUES);
   } catch (Schema2BeansException e) {
     throw new RuntimeException(e);
   }
 }
Esempio n. 2
0
 public static DeploymentPlan createGraph(java.io.InputStream in, boolean validate)
     throws org.netbeans.modules.schema2beans.Schema2BeansException {
   Document doc = GraphManager.createXmlDocument(in, validate);
   return createGraph(doc);
 }