private declared_synchronized void loadPGFFile()
    {
        try {
            boolean v0_1 = new com.kinggrid.iappoffice.file.iMsgServer2000();
            try {
                com.kinggrid.iappoffice.IAppOffice.url = new java.net.URL(com.kinggrid.iappoffice.IAppOffice.webUrl);
                try {
                    android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download pgf file begin);
                    int v2_2 = ((java.net.HttpURLConnection) com.kinggrid.iappoffice.IAppOffice.url.openConnection());
                    try {
                        android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download pgf file ......1);
                        v2_2.setRequestMethod(POST);
                    } catch (boolean v0_18) {
                        com.kinggrid.iappoffice.IAppOffice.result = 下载失败;
                        android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download file pgf fail2!);
                        v0_18.printStackTrace();
                        v2_2.disconnect();
                        if (this.mOnDownLoadStateListener == null) {
                            return;
                        } else {
                            this.mOnDownLoadStateListener.error();
                            return;
                        }
                        v2_2.disconnect();
                        return;
                    }
                    if (!this.fieldList.isEmpty()) {
                        String v1_14 = 0;
                        while (v1_14 < this.fieldList.size()) {
                            v2_2.addRequestProperty(((String) this.fieldList.get(v1_14)), ((String) this.valueList.get(v1_14)));
                            v1_14++;
                        }
                    }
                    v2_2.setDoInput(1);
                    v2_2.setDoOutput(1);
                    v2_2.setUseCaches(0);
                    v2_2.connect();
                    android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download pgf file......2);
                    String v1_17 = v2_2.getOutputStream();
                    v0_1.SetMsgByName(DBSTEP, DBSTEP);
                    v0_1.SetMsgByName(OPTION, LOADFILE);
                    v0_1.SetMsgByName(FILENAME, com.kinggrid.iappoffice.IAppOffice.fileName);
                    v0_1.SetMsgByName(RECORDID, com.kinggrid.iappoffice.IAppOffice.recordId);
                    v0_1.SetMsgByName(FILETYPE, com.kinggrid.iappoffice.IAppOffice.fileType);
                    String v4_14 = v0_1.MsgVariant();
                    String v6_1 = new StringBuilder();
                    v6_1.append(new String(v4_14));
                    android.util.Log.d(aaaa, v6_1.toString());
                    v1_17.write(v4_14, 0, v4_14.length);
                    v1_17.flush();
                    String v1_19 = this.readStream(v2_2.getInputStream());
                    v0_1.MsgTextClear();
                    v0_1.MsgErrorClear();
                    v0_1.MsgFileClear();
                    v0_1.MsgVariant(v1_19);
                    android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download pgf file......3);
                    com.kinggrid.iappoffice.IAppOffice.filesize = v0_1.MsgFileSize();
                    new String(utf-8);
                    String v1_0 = v0_1.MsgError();
                    if (!v0_1.MsgError().equals()) {
                        com.kinggrid.iappoffice.IAppOffice.result = 下载失败;
                        if (this.mOnDownLoadStateListener != null) {
                            this.mOnDownLoadStateListener.error();
                        }
                        String v3_4 = new StringBuilder(download pgf pgf file fail1===);
                        v3_4.append(v1_0);
                        android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, v3_4.toString());
                        if (打开失败!.equals(v1_0)) {
                            boolean v0_9 = new StringBuilder(String.valueOf(com.kinggrid.iappoffice.IAppOffice.directory));
                            v0_9.append(com.kinggrid.iappoffice.IAppOffice.recordId);
                            v0_9.append(com.kinggrid.iappoffice.IAppOffice.fileType);
                            this.setFileName(v0_9.toString());
                            if (!com.kinggrid.iappoffice.IAppOffice.useWPSPer) {
                                this.newAndOpen();
                            }
                        }
                    } else {
                        String v1_5 = v0_1.MsgFileBody();
                        com.kinggrid.iappoffice.IAppOffice.fileUtil.loadFile(v0_1, v1_5, com.kinggrid.iappoffice.IAppOffice.fileName);
                        String v3_9 = new java.io.FileOutputStream(new java.io.File(com.kinggrid.iappoffice.IAppOffice.pgfFilePath));
                        v3_9.write(v1_5);
                        v3_9.close();
                        com.kinggrid.iappoffice.IAppOffice.result = 下载成功;
                        if (this.mOnDownLoadStateListener != null) {
                            this.mOnDownLoadStateListener.success();
                        }
                        android.util.Log.d(com.kinggrid.iappoffice.IAppOffice.tag, download pgf file success!);
                    }
                } catch (boolean v0_18) {
                    v2_2 = 0;
                }
            } catch (int v2_5) {
                v2_5.printStackTrace();
            }
        } catch (boolean v0_21) {
            throw v0_21;
        }
    }