???????????????loadrunner??java_vuserЭ??????У?init?????????vuer?????????????????Σ????仰?N??????????N?Σ??????????????inputStream??????????N?Ρ????漴???????????
File file = new File("C:/8K.file");
static InputStream is =null;
// ???????byte???顡??<span style="color: rgb(255?? 0?? 0); ">
</span>????????byte[] fileBytes = new byte[(int) file.length()];
// ????????????????????????
JingdongFileSystem jfs =new JingdongFileSystem();
public int init() throws Throwable {
if(is==null){
is = new FileInputStream(file);
??
ByteStreams.readFully(is?? fileBytes);
is.close();
//jfs = new JingdongFileSystem();
//?????
return 0;
}//end of init
?????????????????????????????????????????????????Ч?????? ????????????????????μ???????????
static {
File file = new File("C:/8K.file");
fileBytes = new byte[(int) file.length()];
// ????????????????????????
try {
InputStream is = new FileInputStream(file);
ByteStreams.readFully(is?? fileBytes);
is.close();
} catch (Exception e) {
e.printStackTrace();
}
jfs = new JingdongFileSystem();
}
??????????????:???static???壬?????????????????.?????????????????????????????????????????????static???ε???????.
?????????£?
??????java_vuserЭ???????:
????1. vuser_init???????????У?
????2. init??????????????????????????
????3. ??????????????????????????????????t????????顣