| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_151) on Thu Jan 18 00:59:42 GMT 2018 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>FileDelegate (Apache Taverna Server 3.1.0-incubating API)</title> |
| <meta name="date" content="2018-01-18"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="FileDelegate (Apache Taverna Server 3.1.0-incubating API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/FileDelegate.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/apache/taverna/server/localworker/impl/DirectoryDelegate.html" title="class in org.apache.taverna.server.localworker.impl"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/taverna/server/localworker/impl/LocalWorker.html" title="class in org.apache.taverna.server.localworker.impl"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/taverna/server/localworker/impl/FileDelegate.html" target="_top">Frames</a></li> |
| <li><a href="FileDelegate.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.java.rmi.server.RemoteObject">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.taverna.server.localworker.impl</div> |
| <h2 title="Class FileDelegate" class="title">Class FileDelegate</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true" title="class or interface in java.rmi.server">java.rmi.server.RemoteObject</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteServer.html?is-external=true" title="class or interface in java.rmi.server">java.rmi.server.RemoteServer</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true" title="class or interface in java.rmi.server">java.rmi.server.UnicastRemoteObject</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.taverna.server.localworker.impl.FileDelegate</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/Remote.html?is-external=true" title="class or interface in java.rmi">Remote</a>, <a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectoryEntry</a>, <a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">FileDelegate</span> |
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true" title="class or interface in java.rmi.server">UnicastRemoteObject</a> |
| implements <a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></pre> |
| <div class="block">This class acts as a remote-aware delegate for the files in a workflow run's |
| working directory and its subdirectories.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd>Donal Fellows</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../org/apache/taverna/server/localworker/impl/DirectoryDelegate.html" title="class in org.apache.taverna.server.localworker.impl"><code>DirectoryDelegate</code></a>, |
| <a href="../../../../../../serialized-form.html#org.apache.taverna.server.localworker.impl.FileDelegate">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.java.rmi.server.RemoteObject"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class java.rmi.server.<a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true" title="class or interface in java.rmi.server">RemoteObject</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#ref" title="class or interface in java.rmi.server">ref</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#FileDelegate-java.io.File-org.apache.taverna.server.localworker.impl.DirectoryDelegate-">FileDelegate</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file, |
| <a href="../../../../../../org/apache/taverna/server/localworker/impl/DirectoryDelegate.html" title="class in org.apache.taverna.server.localworker.impl">DirectoryDelegate</a> parent)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#appendContents-byte:A-">appendContents</a></span>(byte[] data)</code> |
| <div class="block">Append the data to the file.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#copy-org.apache.taverna.server.localworker.remote.RemoteFile-">copy</a></span>(<a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a> sourceFile)</code> |
| <div class="block">Copy from another file to this one.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#destroy--">destroy</a></span>()</code> |
| <div class="block">Destroy this directory entry, deleting the file or sub-directory.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectory.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getContainingDirectory--">getContainingDirectory</a></span>()</code> |
| <div class="block">Gets the directory containing this directory entry.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getContents-int-int-">getContents</a></span>(int offset, |
| int length)</code> |
| <div class="block">Read from the file.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getModificationDate--">getModificationDate</a></span>()</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getName--">getName</a></span>()</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getNativeHost--">getNativeHost</a></span>()</code> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getNativeName--">getNativeName</a></span>()</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#getSize--">getSize</a></span>()</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/taverna/server/localworker/impl/FileDelegate.html#setContents-byte:A-">setContents</a></span>(byte[] data)</code> |
| <div class="block">Write the data to the file, totally replacing what was there before.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.rmi.server.UnicastRemoteObject"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.rmi.server.<a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true" title="class or interface in java.rmi.server">UnicastRemoteObject</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true#clone--" title="class or interface in java.rmi.server">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true#exportObject-java.rmi.Remote-" title="class or interface in java.rmi.server">exportObject</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true#exportObject-java.rmi.Remote-int-" title="class or interface in java.rmi.server">exportObject</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true#exportObject-java.rmi.Remote-int-java.rmi.server.RMIClientSocketFactory-java.rmi.server.RMIServerSocketFactory-" title="class or interface in java.rmi.server">exportObject</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UnicastRemoteObject.html?is-external=true#unexportObject-java.rmi.Remote-boolean-" title="class or interface in java.rmi.server">unexportObject</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.rmi.server.RemoteServer"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.rmi.server.<a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteServer.html?is-external=true" title="class or interface in java.rmi.server">RemoteServer</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteServer.html?is-external=true#getClientHost--" title="class or interface in java.rmi.server">getClientHost</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteServer.html?is-external=true#getLog--" title="class or interface in java.rmi.server">getLog</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteServer.html?is-external=true#setLog-java.io.OutputStream-" title="class or interface in java.rmi.server">setLog</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.rmi.server.RemoteObject"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.rmi.server.<a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true" title="class or interface in java.rmi.server">RemoteObject</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.rmi.server">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#getRef--" title="class or interface in java.rmi.server">getRef</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#hashCode--" title="class or interface in java.rmi.server">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#toString--" title="class or interface in java.rmi.server">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/server/RemoteObject.html?is-external=true#toStub-java.rmi.Remote-" title="class or interface in java.rmi.server">toStub</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="FileDelegate-java.io.File-org.apache.taverna.server.localworker.impl.DirectoryDelegate-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>FileDelegate</h4> |
| <pre>public FileDelegate(<a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file, |
| <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/apache/taverna/server/localworker/impl/DirectoryDelegate.html" title="class in org.apache.taverna.server.localworker.impl">DirectoryDelegate</a> parent) |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>file</code> - </dd> |
| <dd><code>parent</code> - </dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If registration of the file fails.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getContents-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContents</h4> |
| <pre>public byte[] getContents(int offset, |
| int length) |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#getContents-int-int-">RemoteFile</a></code></span></div> |
| <div class="block">Read from the file.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#getContents-int-int-">getContents</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>offset</code> - Where in the file to read the bytes from.</dd> |
| <dd><code>length</code> - How much of the file to read; -1 for "to the end".</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The literal byte contents of the given section of the file.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If things go wrong reading the file.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSize</h4> |
| <pre>public long getSize()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#getSize--">getSize</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The length of the file, in bytes.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setContents-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setContents</h4> |
| <pre>public void setContents(byte[] data) |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#setContents-byte:A-">RemoteFile</a></code></span></div> |
| <div class="block">Write the data to the file, totally replacing what was there before.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#setContents-byte:A-">setContents</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>data</code> - The literal bytes that will form the new contents of the file.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If things go wrong writing the contents.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="appendContents-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>appendContents</h4> |
| <pre>public void appendContents(byte[] data) |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#appendContents-byte:A-">RemoteFile</a></code></span></div> |
| <div class="block">Append the data to the file.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#appendContents-byte:A-">appendContents</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>data</code> - The literal bytes that will be appended.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If things go wrong writing the contents.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="destroy--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>destroy</h4> |
| <pre>public void destroy() |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#destroy--">RemoteDirectoryEntry</a></code></span></div> |
| <div class="block">Destroy this directory entry, deleting the file or sub-directory. The |
| workflow run's working directory can never be manually destroyed.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#destroy--">destroy</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectoryEntry</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If things go wrong when deleting the directory entry.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getContainingDirectory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContainingDirectory</h4> |
| <pre>public <a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectory.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectory</a> getContainingDirectory()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#getContainingDirectory--">RemoteDirectoryEntry</a></code></span></div> |
| <div class="block">Gets the directory containing this directory entry.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#getContainingDirectory--">getContainingDirectory</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectoryEntry</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A directory handle, or <tt>null</tt> if called on the workflow |
| run's working directory.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getName</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getName()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#getName--">getName</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectoryEntry</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The "local" name of the entry. This will never be "<tt>..</tt>" |
| or contain the character "<tt>/</tt>".</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copy-org.apache.taverna.server.localworker.remote.RemoteFile-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public void copy(<a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a> sourceFile) |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a>, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#copy-org.apache.taverna.server.localworker.remote.RemoteFile-">RemoteFile</a></code></span></div> |
| <div class="block">Copy from another file to this one.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#copy-org.apache.taverna.server.localworker.remote.RemoteFile-">copy</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sourceFile</code> - The other file to copy from.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If things go wrong during the copy.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNativeName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNativeName</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getNativeName()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#getNativeName--">getNativeName</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The full native OS name for the file.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNativeHost--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNativeHost</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getNativeHost()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html#getNativeHost--">getNativeHost</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteFile.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteFile</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The host holding the file.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getModificationDate--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getModificationDate</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a> getModificationDate() |
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html#getModificationDate--">getModificationDate</a></code> in interface <code><a href="../../../../../../org/apache/taverna/server/localworker/remote/RemoteDirectoryEntry.html" title="interface in org.apache.taverna.server.localworker.remote">RemoteDirectoryEntry</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The time when the entry was last modified.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code> - If anything goes wrong with the communication.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/FileDelegate.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/apache/taverna/server/localworker/impl/DirectoryDelegate.html" title="class in org.apache.taverna.server.localworker.impl"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/taverna/server/localworker/impl/LocalWorker.html" title="class in org.apache.taverna.server.localworker.impl"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/taverna/server/localworker/impl/FileDelegate.html" target="_top">Frames</a></li> |
| <li><a href="FileDelegate.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.java.rmi.server.RemoteObject">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2015–2018 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |