public static byte[] readBytes(InputStream ins) throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        write(out, ins);
        return out.toByteArray();
    }
public static byte[] readBytes(InputStream ins) throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        write(out, ins);
        return out.toByteArray();
    }
public static byte [ ] readBytes ( InputStream ins ) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; write ( out , ins ) ; return out . toByteArray ( ) ; }
读取一个输入流中所有的字节

@param ins
输入流，必须支持 available()
@return 一个字节数组
@throws IOException
读取一个输入流中所有的字节