【发布时间】:2016-01-30 15:23:09
【问题描述】:
代码的目的是从数据库中读取数据,但我不知道“i[1]=data[1]& 0xff;”的意思在 getBinaryStream(1) 中,“1”是什么意思?
if(rs.next())
{
InputStream in=rs.getBinaryStream(1);//what the mean of the code?
byte[] data = StreamTool.readInputStream(in);
int[] i =new int[12];
i[1]=data[1]& 0xff;//what the mean of the code?
i[4]=data[4]& 0xff;//what the mean of the code?
i[7]=data[7]& 0xff;//what the mean of the code?
i[10]=data[10]& 0xff;//what the mean of the code?
int a=3*(port1-1)+1;
int b=3*(port2-1)+1;
【问题讨论】: