de.intarsys.tools.file
Class SynchTools
java.lang.Object
de.intarsys.tools.file.SynchTools
public class SynchTools
- extends java.lang.Object
Tool methods to implement a file based synchronization with other platform
processes.
This is especially useful for synchronizing in shell scripting integration
scenarios, in conjunction with some commandline based access to this methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchTools
public SynchTools()
delSynchFile
public static void delSynchFile(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
getBytes
public static byte[] getBytes()
getSynchFile
public static java.io.File getSynchFile()
throws java.io.IOException
- Throws:
java.io.IOException
setBytes
public static void setBytes(byte[] bytes)
setSynchFile
public static void setSynchFile(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setSynchFile
public static void setSynchFile(java.io.File file,
byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
setSynchFile
public static void setSynchFile(java.io.File file,
java.lang.String value)
throws java.io.IOException
- Throws:
java.io.IOException
waitSynchFile
public static void waitSynchFile(java.io.File file,
int timeout)
throws java.io.IOException
- Throws:
java.io.IOException