rk
5 小时以前 99b89dc0ae4fbe90c6d629a223ad730986ffd8f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package android_serialport_api;
 
import java.text.SimpleDateFormat;
 
/**
 * @author benjaminwan
 */
public class ComBean {
        public byte[] bRec=null;
        public String sRecTime="";
        public String sComPort="";
        public int nSize = 0;
        public ComBean(String sPort,byte[] buffer,int size){
            sComPort=sPort;
            bRec=new byte[size];
            for (int i = 0; i < size; i++)
            {
                bRec[i]=buffer[i];
            }
            nSize = size;
            SimpleDateFormat sDateFormat = new SimpleDateFormat("hh:mm:ss");       
            sRecTime = sDateFormat.format(new java.util.Date()); 
        }
}