@@ -0,0 +1,1512 @@
+/*%0A * Author : Rishi Gupta%0A * %0A * This file is part of 'serial communication manager' library.%0A *%0A * The 'serial communication manager' is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Lesser General Public License as published by the Free Software %0A * Foundation, either version 3 of the License, or (at your option) any later version.%0A *%0A * The 'serial communication manager' is distributed in the hope that it will be useful, but%0A * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A %0A * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with serial communication manager. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.embeddedunveiled.serial.hid;%0A%0Aimport com.embeddedunveiled.serial.internal.SerialComHIDJNIBridge;%0A%0A/**%0A * %3Cp%3ESuper class for all HID transport mediums.%3C/p%3E%0A * %0A * @author Rishi Gupta%0A */%0Apublic class SerialComHIDTransport %7B%0A%0A%09// sub-classes also uses this reference to invoke native functions.%0A%09protected SerialComHIDJNIBridge mHIDJNIBridge;%0A%09protected int osType;%0A%0A%09/**%0A%09 * %3Cp%3EAllocates a new SerialComHID object.%3C/p%3E%0A%09 * %0A%09 * @param mHIDJNIBridge interface class to native library for calling platform specific routines.%0A%09 */%0A%09public SerialComHIDTransport(SerialComHIDJNIBridge mHIDJNIBridge, int osType) %7B%0A%09%09this.mHIDJNIBridge = mHIDJNIBridge;%0A%09%09this.osType = osType;%0A%09%7D%0A%7D%0A

create super class for hid transports