Class Tools

java.lang.Object
org.api.mkm.tools.Tools

public class Tools
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String encodeString​(java.lang.String s)  
    static org.jsoup.nodes.Document getDocument​(java.lang.String url)  
    static java.lang.String getXMLResponse​(java.lang.String link, java.lang.String method, java.lang.Class serv)  
    static java.lang.String getXMLResponse​(java.lang.String link, java.lang.String method, java.lang.Class serv, java.lang.String content)  
    static com.thoughtworks.xstream.XStream instNewXstream()  
    static java.lang.String join​(java.util.Collection<?> s, java.lang.String delimiter)  
    static void unzip​(java.io.File zipFilePath, java.io.File to)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • encodeString

      public static java.lang.String encodeString​(java.lang.String s)
    • instNewXstream

      public static com.thoughtworks.xstream.XStream instNewXstream()
    • unzip

      public static void unzip​(java.io.File zipFilePath, java.io.File to) throws java.io.IOException
      Throws:
      java.io.IOException
    • join

      public static java.lang.String join​(java.util.Collection<?> s, java.lang.String delimiter)
    • getDocument

      public static org.jsoup.nodes.Document getDocument​(java.lang.String url) throws java.io.IOException
      Throws:
      java.io.IOException
    • getXMLResponse

      public static java.lang.String getXMLResponse​(java.lang.String link, java.lang.String method, java.lang.Class serv) throws java.io.IOException
      Throws:
      java.io.IOException
    • getXMLResponse

      public static java.lang.String getXMLResponse​(java.lang.String link, java.lang.String method, java.lang.Class serv, java.lang.String content) throws java.io.IOException
      Throws:
      java.io.IOException