@Immutable public final class Snapshot extends Object
Constructor and Description |
---|
Snapshot(org.xembly.Directives dirs)
Public ctor.
|
Snapshot(InputStream stream)
Public ctor.
|
Snapshot(String script)
Public ctor.
|
public Snapshot(InputStream stream) throws IOException, org.xembly.XemblySyntaxException
stream
- Stream to read it fromIOException
- If fails to readorg.xembly.XemblySyntaxException
- If some syntax exception insidepublic Snapshot(String script) throws org.xembly.XemblySyntaxException
script
- Scriptorg.xembly.XemblySyntaxException
- If can't parsepublic Snapshot(org.xembly.Directives dirs)
dirs
- Directivespublic String xembly()
public static Document empty()
public Document dom() throws org.xembly.ImpossibleModificationException
org.xembly.ImpossibleModificationException
- If can't applypublic XmlDocument xml() throws org.xembly.ImpossibleModificationException
org.xembly.ImpossibleModificationException
- If can't apply@Loggable(value=1, ignore=org.xembly.ImpossibleModificationException.class) public void apply(Document dom) throws org.xembly.ImpossibleModificationException
dom
- DOM documentorg.xembly.ImpossibleModificationException
- If fails at some pointCopyright © 2009–2013 Rultor Inc.. All rights reserved.