/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.epics.pvmanager.jca;

import gov.aps.jca.JCALibrary;
import gov.aps.jca.Monitor;

/**
 *
 * @author carcassi
 */
public class JCAVarArray {
    public static void main(String[] args) {
        // Test CAJ
        JCADataSource jcaDataSource = new JCADataSource();
        System.out.println("Supports variable arrays: " + jcaDataSource.isVarArraySupported());
        jcaDataSource.close();
        
        // Test JCA
        jcaDataSource = new JCADataSource(JCALibrary.JNI_THREAD_SAFE, Monitor.VALUE | Monitor.ALARM);
        System.out.println("Supports variable arrays: " + jcaDataSource.isVarArraySupported());
        jcaDataSource.close();
    }
}

@@ -1,100 +1,121 @@
 /*
+*
 %0D%0A * 
-To change this template, choose Tools %7C Templates%0D%0A * and open the template in the editor
+Copyright (C) 2010-12 Brookhaven National Laboratory%0D%0A * All rights reserved. Use is subject to license terms
 .%0D%0A 

Fix copyright.