@Test public void start() { try { final UID uid = new UID(); File temp = File.createTempFile("xw-junit", "itf"); assertTrue(XWTools.createDir(temp, uid).equals(XWTools.createDir(temp, uid))); } catch (IOException e) { e.printStackTrace(); assert(false); } }
public static File createDir(final String parent, final UID uid) throws IOException { final File fparent = new File(parent); return createDir(fparent, uid); }
XWTools { public static File createDir(final String parent, final UID uid) throws IOException { final File fparent = new File(parent); return createDir(fparent, uid); } }
XWTools { public static File createDir(final String parent, final UID uid) throws IOException { final File fparent = new File(parent); return createDir(fparent, uid); } private  XWTools(); }
XWTools { public static File createDir(final String parent, final UID uid) throws IOException { final File fparent = new File(parent); return createDir(fparent, uid); } private  XWTools(); static String getSQLDateTime(final java.util.Date d); static java.util.Date getSQLDateTime(final String d); static synchronized boolean lockPort(final int port); static void releasePort(final int port); static String getLocalHostName(); static String getHostName(final String hostname); static boolean searchInArray(final Object[] a, final Object b); static void fatal(final String s); static void debug(final String s); static void restart(final String s); static void fileCopy(final File in, final File out); static X509Certificate certificateFromFile(final String certFileName); static X509Certificate certificateFromFile(final File certFile); static X509Certificate checkCertificate(final File certFile); static X509Certificate checkCertificate(final InputStream in); static boolean compareCertificates(final X509Certificate key1, final X509Certificate key2); static File createDir(final String parent, final UID uid); static File createDir(final File parent, final UID uid); static void checkDir(final File dir); static void checkDir(final String str); static boolean deleteDir(final File path); static Map<String, String> hash(final String src); static Map<String, String> hash(final String src, final String separator1, final String separator2); static Collection<String> split(final String src, final String separator); static Collection<String> split(final String src); static void launchBrowser(final String url); static int[] bytes2integers(final byte[] datas, final int len); static int bytes2integer(final byte[] bytes); static byte[] long2bytes(final long data); static byte[] integer2bytes(final int data); static byte[] short2bytes(final short data); static String intToHexString(final int value); static String byteArrayToHexString(final byte[] raw); static byte[] hexStringToByteArray(final String s); static final X509Certificate[] retrieveCertificates(final String host, final boolean sav); static String jsonValueFromURL(final String u, final String key); static String jsonValueFromString(final String s, final String key); static KeyStore setCACertificateEntries(final KeyStore store); static URI newURI(final UID uid); static String sha256CheckSum(final File data); static String sha256(final String data); static void dumpUrlContent(final String urlStr); static ContributionStatusEnum workerContributionStatus(final EthereumWallet ethWalletAddr, final String workOrderId); static ConsensusModel getConsensusModel(final String workOrderId); static void dumpWorkerContribution(final EthereumWallet ethWalletAddr, final String workOrderId); static void main(final String[] argv); }
XWTools { public static File createDir(final String parent, final UID uid) throws IOException { final File fparent = new File(parent); return createDir(fparent, uid); } private  XWTools(); static String getSQLDateTime(final java.util.Date d); static java.util.Date getSQLDateTime(final String d); static synchronized boolean lockPort(final int port); static void releasePort(final int port); static String getLocalHostName(); static String getHostName(final String hostname); static boolean searchInArray(final Object[] a, final Object b); static void fatal(final String s); static void debug(final String s); static void restart(final String s); static void fileCopy(final File in, final File out); static X509Certificate certificateFromFile(final String certFileName); static X509Certificate certificateFromFile(final File certFile); static X509Certificate checkCertificate(final File certFile); static X509Certificate checkCertificate(final InputStream in); static boolean compareCertificates(final X509Certificate key1, final X509Certificate key2); static File createDir(final String parent, final UID uid); static File createDir(final File parent, final UID uid); static void checkDir(final File dir); static void checkDir(final String str); static boolean deleteDir(final File path); static Map<String, String> hash(final String src); static Map<String, String> hash(final String src, final String separator1, final String separator2); static Collection<String> split(final String src, final String separator); static Collection<String> split(final String src); static void launchBrowser(final String url); static int[] bytes2integers(final byte[] datas, final int len); static int bytes2integer(final byte[] bytes); static byte[] long2bytes(final long data); static byte[] integer2bytes(final int data); static byte[] short2bytes(final short data); static String intToHexString(final int value); static String byteArrayToHexString(final byte[] raw); static byte[] hexStringToByteArray(final String s); static final X509Certificate[] retrieveCertificates(final String host, final boolean sav); static String jsonValueFromURL(final String u, final String key); static String jsonValueFromString(final String s, final String key); static KeyStore setCACertificateEntries(final KeyStore store); static URI newURI(final UID uid); static String sha256CheckSum(final File data); static String sha256(final String data); static void dumpUrlContent(final String urlStr); static ContributionStatusEnum workerContributionStatus(final EthereumWallet ethWalletAddr, final String workOrderId); static ConsensusModel getConsensusModel(final String workOrderId); static void dumpWorkerContribution(final EthereumWallet ethWalletAddr, final String workOrderId); static void main(final String[] argv); static final String IEXECETHCONFPATH; static final Charset UTF8; static final String QUOTE; static final String STDOUT; static final String JARFILENAME; static final String STDERR; static final String CONSENSUSFILENAME; static final String ENCLAVESIGFILENAME; static final String LAUNCHSCRIPTHEADER; static final String LAUNCHSCRIPTTRAILER; static final String UNLOADSCRIPTHEADER; static final String UNLOADSCRIPTTRAILER; static final String IEXECHUBADDRTEXT; static final String IEXECRLCADDRTEXT; static final String ETHNODEADDRTEXT; static final String IEXECWORKERPOOLADDRTEXT; static final String IEXECWORKERPOOLNAMETEXT; static final int PACKETSIZE; static final int LONGFILESIZE; static final int MAXDBREQUESTLIMIT; static final int MAXMESSAGES; static final long ONEKILOBYTES; static final long ONEMEGABYTES; static final long ONEGIGABYTES; static final long TWOGIGABYTES; static final int DEFAULTWALLCLOCKTIME; static final float DEFAULTCPUSPEED; static final long MAXFILESIZE; static final long MAXDISKSIZE; static final long MAXRAMSIZE; static final int BUFFEREND; final static String PACKAGENAMEHEADER; static final int SIZEOFBYTE; static final int SIZEOFSHORT; static final int SIZEOFINTEGER; static final int SIZEOFLONG; static final String GOOGLE_ADDR; static final String YAHOO_ADDR; static final String localHostName; }