the aim of the code is read data from database,but I don't know the mean of " i[1]=data[1]& 0xff;" in the getBinaryStream(1) ,what is the '1' mean?
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;