大家好!我现在的问题是我取缓冲取的数据时候会有点慢达不到我想要的效果!麻烦各位帮我看看!
如果只发命令的话就快,我下面是一个数组接收的
public boolean DrfGen2MultiTagIdentify() { // EPC Gen2 多标签识别
        int[] blockWrite = new int[] {0xAA, 0xFF, 0x02, 0x90,
                           0x00};
        blockWrite[blockWrite.length -
                1] = Check(blockWrite, (blockWrite.length - 1));
        for (int i = 0; i < blockWrite.length; i++) {
            try {
                outputStream.write(blockWrite[i]);
                outputStream.close();
            } catch (IOException ex1) {
                System.out.println(ex1);
                ex1.printStackTrace();
                return false;
            }
        }
        byte[] blockRead = new byte[8];
        try {
            inputStream.read(blockRead);
            this.GEN = blockRead;
            inputStream.close();
        } catch (IOException ex1) {
            ex1.printStackTrace();
            return false;
        }        return true;
    }