Class 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.

    • Constructor Summary

      Constructors 
      Constructor Description
      SynchTools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void delSynchFile​(java.io.File file)  
      static byte[] getBytes()  
      static java.io.File getSynchFile()  
      static void setBytes​(byte[] bytes)  
      static void setSynchFile​(java.io.File file)  
      static void setSynchFile​(java.io.File file, byte[] bytes)  
      static void setSynchFile​(java.io.File file, java.lang.String value)  
      static void waitSynchFile​(java.io.File file, int timeout)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SynchTools

        public SynchTools()
    • Method Detail

      • 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