com.visioglobe.libVisioDevKit
Class VgIResourceManager

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgIResourceManager

public class VgIResourceManager
extends java.lang.Object

Manages resources.


Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
VgIResourceManager(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgIResourceManager obj)
           
 VgBinaryBufferRefPtr readFromFileOrURL(java.lang.String pFilenameOrURL)
          Reads synchronously a file or a URL.
 VgIResourceRequestRefPtr readFromFileOrURL(VgResourceRequestParameters pParameters)
          Reads asynchronously a file or a URL.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

VgIResourceManager

public VgIResourceManager(long cPtr,
                          boolean cMemoryOwn)
Method Detail

getCPtr

public static long getCPtr(VgIResourceManager obj)

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

delete

public void delete()

readFromFileOrURL

public VgBinaryBufferRefPtr readFromFileOrURL(java.lang.String pFilenameOrURL)
Reads synchronously a file or a URL. This function does not have the constraint that a configuration has to be loaded.

Parameters:
pFilenameOrURL - File-system path or URL of the resource
Returns:
The buffer filled with the source content.

readFromFileOrURL

public VgIResourceRequestRefPtr readFromFileOrURL(VgResourceRequestParameters pParameters)
Reads asynchronously a file or a URL.

Parameters:
pParameters - Parameters of the request.
Returns:
The resulting request. If the callback is NULL or the URI is empty, it returns NULL.
Remark:
this function currently works ONLY IF a configuration is loaded since it relies on threads being created.

VisioDevKit 2.0, Visioglobe® 2013