public class Historian
extends java.lang.Object
Constructor and Description |
---|
Historian() |
Modifier and Type | Method and Description |
---|---|
void |
copy(java.net.URL srcUrl,
java.net.URL dstUrl)
Copy the last persisted contents of the object located at the given source
URL into the given destination URL.
|
void |
recordContents(java.net.URL srcUrl,
java.net.URL dstUrl)
Persist the current contents of the object located at the given source URL
into the given destination URL.
|
public void recordContents(java.net.URL srcUrl, java.net.URL dstUrl) throws java.lang.Exception
The default implementation provides a simple byte by byte transfer of the contents of the InputStream of a Node into an OutputStream opened upon a given URL.
srcUrl
- the source location whose contents are to be recorded.dstUrl
- the destination location at which to record the contents.java.lang.Exception
- on failure.public void copy(java.net.URL srcUrl, java.net.URL dstUrl) throws java.lang.Exception
srcUrl
- the source location whose last state is to be copied.dstUrl
- the destination location at which to copy the contents.java.lang.Exception
- on failure.