Пример #1
0
 @Override
 public void write(DOMOutput out) throws IOException {
   super.write(out);
   out.openElement("locator");
   out.writeObject(locator);
   out.closeElement();
 }
Пример #2
0
 @Override
 public void read(DOMInput in) throws IOException {
   super.read(in);
   in.openElement("locator");
   this.locator = (Locator) in.readObject(0);
   in.closeElement();
 }