1 21 package oracle.toplink.essentials.platform.xml; 23 24 import java.io.OutputStream ; 25 import java.io.Writer ; 26 import java.net.URL ; 27 import javax.xml.transform.Result ; 28 import javax.xml.transform.Source ; 29 import org.w3c.dom.Document ; 30 import org.w3c.dom.Node ; 31 import org.xml.sax.ContentHandler ; 32 33 public interface XMLTransformer { 34 public String getEncoding(); 35 36 public void setEncoding(String encoding); 37 38 public boolean isFormattedOutput(); 39 40 public void setFormattedOutput(boolean shouldFormat); 41 42 public boolean isFragment(); 43 44 public void setFragment(boolean fragment); 45 46 public String getVersion(); 47 48 public void setVersion(String version); 49 50 public void transform(Node sourceNode, OutputStream resultOutputStream) throws XMLPlatformException; 51 52 public void transform(Node sourceNode, ContentHandler resultContentHandler) throws XMLPlatformException; 53 54 public void transform(Node sourceNode, Result result) throws XMLPlatformException; 55 56 public void transform(Node sourceNode, Writer resultWriter) throws XMLPlatformException; 57 58 public void transform(Source source, Result result) throws XMLPlatformException; 59 60 public void transform(Document sourceDocument, Node resultParentNode, URL stylesheet) throws XMLPlatformException; 61 } 62 | Popular Tags |