barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt.lib
Class ResourceManagerUDT

java.lang.Object
  extended by com.barchart.udt.lib.ResourceManagerUDT

public class ResourceManagerUDT
extends Object

class path resource extractor and system loader


Field Summary
protected static int EOF
           
protected static org.slf4j.Logger log
           
 
Constructor Summary
ResourceManagerUDT()
           
 
Method Summary
protected static void ensureTargetFolder(File folder)
           
protected static void ensureTargetFolder(String targetFolder)
           
protected static void extractResource(String sourcePath, String targetPath)
          extract resource from class path into local file system
protected static URLConnection fileConnection(File file)
           
protected static boolean isSameResource(URLConnection conONE, URLConnection conTWO)
           
protected static void systemLoad(String targetPath)
          load library using absolute file path
protected static void systemLoad(String sourcePath, String targetPath)
          load library using absolute file path
protected static long timeStamp(URLConnection connIN)
          will use time stamp of jar file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.slf4j.Logger log

EOF

protected static final int EOF
See Also:
Constant Field Values
Constructor Detail

ResourceManagerUDT

public ResourceManagerUDT()
Method Detail

isSameResource

protected static boolean isSameResource(URLConnection conONE,
                                        URLConnection conTWO)
                                 throws Exception
Throws:
Exception

fileConnection

protected static URLConnection fileConnection(File file)
                                       throws Exception
Throws:
Exception

timeStamp

protected static long timeStamp(URLConnection connIN)
will use time stamp of jar file


extractResource

protected static void extractResource(String sourcePath,
                                      String targetPath)
                               throws Exception
extract resource from class path into local file system

Throws:
Exception

ensureTargetFolder

protected static void ensureTargetFolder(File folder)
                                  throws Exception
Throws:
Exception

ensureTargetFolder

protected static void ensureTargetFolder(String targetFolder)
                                  throws Exception
Throws:
Exception

systemLoad

protected static void systemLoad(String targetPath)
                          throws Exception
load library using absolute file path

Throws:
Exception

systemLoad

protected static void systemLoad(String sourcePath,
                                 String targetPath)
                          throws Exception
load library using absolute file path

Throws:
Exception

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.