1 28 29 package com.caucho.eswrap.com.caucho.xml; 30 31 import com.caucho.vfs.Path; 32 import com.caucho.xml.LooseXml; 33 34 import org.w3c.dom.Document ; 35 import org.xml.sax.SAXException ; 36 37 import java.io.IOException ; 38 import java.io.InputStream ; 39 40 public class LooseXmlEcmaWrap { 41 public static Document parse(InputStream is) 42 throws IOException , SAXException 43 { 44 return new LooseXml().parseDocument(is); 45 } 46 47 public static Document parseString(String s) 48 throws IOException , SAXException 49 { 50 return new LooseXml().parseDocumentString(s); 51 } 52 53 public static Document parseFile(Path path) 54 throws IOException , SAXException 55 { 56 return new LooseXml().parseDocument(path); 57 } 58 } 59 | Popular Tags |