WO2014194823A2 - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
WO2014194823A2
WO2014194823A2 PCT/CN2014/079151 CN2014079151W WO2014194823A2 WO 2014194823 A2 WO2014194823 A2 WO 2014194823A2 CN 2014079151 W CN2014079151 W CN 2014079151W WO 2014194823 A2 WO2014194823 A2 WO 2014194823A2
Authority
WO
WIPO (PCT)
Prior art keywords
drawing data
data
adobe flex
javascript
serial number
Prior art date
Application number
PCT/CN2014/079151
Other languages
French (fr)
Chinese (zh)
Other versions
WO2014194823A3 (en
Inventor
刘航
贾西贝
Original Assignee
深圳市华傲数据技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市华傲数据技术有限公司 filed Critical 深圳市华傲数据技术有限公司
Publication of WO2014194823A2 publication Critical patent/WO2014194823A2/en
Publication of WO2014194823A3 publication Critical patent/WO2014194823A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Definitions

  • the present application relates to the field of data technologies, and in particular, to a data processing method and system, and a background art
  • the Adobe Flex side is used to draw graphics and interact with the user.
  • the java swing side extracts data from the database.
  • the data of all the section segments corresponding to the drawing instruction is acquired from the java swing end according to the drawing instruction, and then the graphic of the user selected area segment is drawn by the Adobe Flex end according to the data.
  • Adobe Flex obtains all the data through one communication, and has the advantage of less interaction with the java swing end and timely graphics rendering.
  • the technical problem to be solved by the present application is to provide a data processing method.
  • the present application also provides a system for data processing methods.
  • a data processing method including: the Adobe Flex end sends a data request to the java swing end through javascript, and the data acquisition request includes a start end serial number and an end end serial number;
  • the java swing end searches for the pair according to the start end serial number and the end end serial number Drawing data
  • the java swing end compresses the drawing data through zlib and obtains the compression-encoded drawing data through base64 encoding
  • the java swing end sends the compressed and encoded drawing data to the Adobe Flex side through javascript.
  • the Adobe Flex end sends a data acquisition request to the java swing terminal through the javascript, where the data acquisition request includes the start serial number and the end serial number before:
  • the Adobe Flex terminal receives a user area selection instruction including at least a start serial number and an end serial number.
  • the java swing end sends the compressed encoded drawing data to the Adobe Flex end by using javascript:
  • the obtained Flex-encoded drawing data is decoded and decompressed by the Adobe Flex end to obtain decoded and decompressed drawing data.
  • the decoding, and decompressing the acquired compression-encoded drawing data by the Adobe Flex end further includes:
  • the Adobe Flex side fuses the decoded decompressed drawing data with the cached queryed drawing data and plots it based on the fused drawing data.
  • the invention also provides a data processing system, including an Adobe Flex module and a java swing module;
  • the Adobe Flex module is configured to send a data acquisition request to the java swing module by using a javascript module, where the data acquisition request includes a start serial number and an end sequence, and the java swing module is configured to use the start serial number and the end.
  • the end serial number is searched for corresponding drawing data; the drawing data is compressed by zlib and the compressed encoded drawing data is obtained by base64 encoding; the compressed and encoded drawing data is sent to the Adobe Flex module through javascript.
  • the Adobe Flex module is further used to:
  • the selection instruction including at least a start serial number and End serial number.
  • the Adobe Flex module is further used to:
  • the obtained compression-encoded drawing data is decoded and decompressed to obtain decoded and decompressed drawing data.
  • the Adobe Flex module is further used to:
  • the decoded decompressed drawing data is merged with the cached drawing data and plotted according to the fused drawing data.
  • the present application includes the following advantages: in the present invention, when the java swing end sends the drawing data to the Adobe Flex end through javascript, the data is first compressed by zlib in the base64 encoding, and the amount of the transferred drawing data is reduced. Small, so in the drawing of large data amount, it is not necessary to slow down the drawing response due to the limitation of javascript data processing capability, and the drawing response rate is improved.
  • FIG. 1 is a schematic flow chart of an embodiment of a data processing method according to the present invention
  • FIG. 2 is a schematic structural diagram of an embodiment of a data processing system according to the present invention. detailed description
  • FIG. 1 a data processing method of the present application is shown, including:
  • Step S101 The Adobe Flex end sends a data acquisition request to the java swing end through the javascript, where the data acquisition request includes a start end serial number and an end end serial number. Further, before step S101, the embodiment may further include:
  • the Adobe Flex terminal receives a user area selection instruction including at least a start serial number and an end serial number.
  • the Adobe Flex end receives an area selection instruction formed according to the area, and the instruction includes at least a start serial number and an end serial number, for example, the start serial number is 20130101. End serial number It is 20130531, which means that the area selected by the user is all data from 20130101 to 20130531.
  • the Adobe Flex side needs to request data from the java swing end, and then sends a data acquisition request to the java swmg end according to the area selection instruction, where the data acquisition request includes a start end serial number and an end end serial number.
  • Step S102 The java swing end searches for corresponding drawing data according to the start end serial number and the end end serial number;
  • the Java swing terminal After receiving the data request command sent by the Adobe Flex side, the Java swing terminal searches the local end data according to the start serial number and the end serial number contained therein, for example, all data from the beginning 20130101 to 20130531.
  • Step S103 the java swing end compresses the drawing data by zlib and obtains the compression-encoded drawing data by base64 encoding
  • the data is first compressed by zlib and then encoded by base64; the purpose of compression is to reduce the data volume, but since the compressed data may have specific characters, the A specific character may be recognized as some control character during transmission, for example, a certain control character recognized as a java swing end during the sending process of the java swing terminal, or recognized by the javascript as a corresponding control character when transmitted through javascript.
  • the Adobe Flex side is recognized as a control character by the Adobe Flex end, which will cause the transmission to be abnormal, so it needs to be encoded again by base64, and the encoded data will not have control characters.
  • Step S104 The java swing end sends the compressed and encoded drawing data to the Adobe Flex end through javascript.
  • step S104 the method may further include:
  • the obtained Flex-encoded drawing data is decoded and decompressed by the Adobe Flex end to obtain decoded and decompressed drawing data.
  • the Adobe Flex end decodes and decompresses the acquired compression-encoded drawing data, and further includes: the Adobe Flex end fuses the decoded decompressed drawing data with the cached query drawing data according to the Blend drawing data for drawing.
  • the java swing end before sending the drawing data to the Adobe Flex end, the java swing end reduces the volume by compressing the drawing data, and compresses the drawing.
  • the data is encoded by base64 to avoid the javascript control characters in the compressed data, which reduces the volume of the drawing data, avoids the drawing data being too large and the drawing response is slow due to the processing capability of the javascript, and the drawing response is improved.
  • the present invention also provides a data processing system, including an Adobe Flex module, 21 and a java swing module 22;
  • the Adobe Flex module 21 is configured to send a data acquisition request to the java swing module 22 by using a javascript module, where the data acquisition request includes a start serial number and an end serial number;
  • the java swing module 22 is configured to search for corresponding drawing data according to the start end serial number and the end end serial number; compress the drawing data through zlib and obtain compression-encoded drawing data through base64 encoding; The compressed and encoded drawing data is sent to the Adobe Flex module 21.
  • the Adobe Flex module 21 is further configured to:
  • a user area selection instruction is received, the selection instruction including at least a start end serial number and an end end serial number.
  • the Adobe Flex module 21 is further used to:
  • the obtained compression-encoded drawing data is decoded and decompressed to obtain decoded and decompressed drawing data.
  • the Adobe Flex module 21 is further configured to:
  • the decoded decompressed drawing data is merged with the cached drawing data and plotted according to the fused drawing data.
  • the java swing module 22 before sending the drawing data to the Adobe Flex module 21, the java swing module 22 first reduces the volume by zKb compression, and compresses the compressed drawing data through base64 encoding to avoid compression. After the data appears javascript control characters, this will reduce the size of the drawing data, avoiding the drawing data is too large and the drawing response is slow due to the processing power of javascript, which improves the drawing response.
  • the above is a detailed description of a data processing method and system provided by the present application. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the present application. The method and its core idea; at the same time, those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and the scope of application, in summary, the contents of this specification should not be construed as Application restrictions.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Image Generation (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided is a data processing method, comprising: an Adobe Flex end transmits a data acquisition request to a java swing end using javascript, the data acquisition request including the initial sequence number and the terminal sequence number; the java swing end searches the corresponding rendering data according to the initial sequence number and the terminal sequence number; the java swing end compresses the rendering data using zlib and encodes using base64 to obtain compressed and encoded rendering data; the java swing end transmits the compressed and encoded rendering data to the Adobe Flex end using javascript. Embodiments of the present invention also provide a corresponding data processing system. In the embodiments of the present invention, the java swing end first compresses the rendering data using zlib and encodes using base64, then transmits to the Adobe Flex end using javascript, and therefore decreases the volume of the rendering data transmitted, thereby avoiding slowing down the rendering response due to javascript having limited data processing capability during large-volume-data rendering, and enhancing rendering response speed.

Description

一种数据处理方法和系统  Data processing method and system
技术领域 Technical field
本申请涉及数据技术领域,特别是涉及一种数据处理方法和系统, 背景技术  The present application relates to the field of data technologies, and in particular, to a data processing method and system, and a background art
在嵌入 Adobe Flex应用的 java swing程序中 ,客户端 Adobe Flex 与 java swing端的通信一般是通过 javascript来进行的。 现有应用中, 由于 Adobe Flex与 java swing端的通信基本者! ^是小数据, javascript 的数据处理能力可以保证 Adobe Flex端与 java swing端的通信正常。  In the Java Swing program embedded in the Adobe Flex application, client-side Adobe Flex communication with the Java swing is usually done via javascript. In existing applications, the basic communication between Adobe Flex and Java Swing! ^ is small data, javascript data processing capabilities can ensure that the communication between the Adobe Flex side and the java swing end is normal.
在现有技术中 , Adobe Flex 端用来绘制图形与用户交互 java swing端从数据库提取数据。 当 Adobe Flex端获取到绘图指令后,根 据绘图指令从 java swing端获取绘图指令对应的所有区间段的数据, 然后由 Adobe Flex端根据所述数据绘制用户所选区域段的图形。 这 样 Adobe Flex通过一次通信获取到所有数据,具有与 java swing端交 互少,图形渲染及时的优势。  In the prior art, the Adobe Flex side is used to draw graphics and interact with the user. The java swing side extracts data from the database. After the Adobe Flex terminal obtains the drawing instruction, the data of all the section segments corresponding to the drawing instruction is acquired from the java swing end according to the drawing instruction, and then the graphic of the user selected area segment is drawn by the Adobe Flex end according to the data. In this way, Adobe Flex obtains all the data through one communication, and has the advantage of less interaction with the java swing end and timely graphics rendering.
现有技术中 ,随着展示图形所需数据的增大,受制于 javascript 的数据处理能力的限制, Adobe Flex端获取绘图数据的时间较长,导 致绘制图形的速度会明显变慢。 所以在绘图数据增大的情况下 , javascript的数据处理能力容易成为整个通信过程的瓶颈。  In the prior art, as the data required to display graphics increases, due to the limitation of the data processing capability of javascript, the time taken by the Adobe Flex side to obtain the drawing data is longer, resulting in a significantly slower drawing of the graphics. Therefore, in the case of increased drawing data, the data processing capability of javascript is likely to become the bottleneck of the entire communication process.
发明内容 Summary of the invention
本申请所要解决的技术问题是提供一种数据处理方法。  The technical problem to be solved by the present application is to provide a data processing method.
相应的 ,本申请还提供了针对数据处理方法的系统。 为了解决上述问题,本申请公开了一种数据处理方法,包括: Adobe Flex端通过 javascript向 java swing端发送数据获耳又请求, 所述数据获取请求包括起始端序列号和结束端序列号;  Accordingly, the present application also provides a system for data processing methods. In order to solve the above problem, the present application discloses a data processing method, including: the Adobe Flex end sends a data request to the java swing end through javascript, and the data acquisition request includes a start end serial number and an end end serial number;
所述 java swing端根据所述起始端序列号和结束端序列号查找对 应绘图数据; The java swing end searches for the pair according to the start end serial number and the end end serial number Drawing data;
所述 java swing端将所述绘图数据经过 zlib压縮并通过 base64 编码得到压縮编码后的绘图数据;  The java swing end compresses the drawing data through zlib and obtains the compression-encoded drawing data through base64 encoding;
所述 java swing端通过 javascript发送所述压縮并编码后的绘图 数据到 Adobe Flex端。  The java swing end sends the compressed and encoded drawing data to the Adobe Flex side through javascript.
进一步的 ,所述 Adobe Flex端通过 javascript向 java swing端发 送数据获取请求,所述数据获取请求包括起始端序列号和结束端序列 号前包括:  Further, the Adobe Flex end sends a data acquisition request to the java swing terminal through the javascript, where the data acquisition request includes the start serial number and the end serial number before:
Adobe Flex端接收用户区域选择指令,所述选择指令至少包括起 始端序列号和结束端序列号。  The Adobe Flex terminal receives a user area selection instruction including at least a start serial number and an end serial number.
进一步的 ,所述 java swing端通过 javascript发送所述压縮编码 后的绘图数据到 Adobe Flex端后包括:  Further, the java swing end sends the compressed encoded drawing data to the Adobe Flex end by using javascript:
Adobe Flex 端对所述获取的压縮编码后的绘图数据进行解码和 解压縮得到解码和解压縮后的绘图数据。  The obtained Flex-encoded drawing data is decoded and decompressed by the Adobe Flex end to obtain decoded and decompressed drawing data.
进一步的 ,所述 Adobe Flex端对所述获取的压縮编码后的绘图 数据进行解码和解压縮后还包括:  Further, the decoding, and decompressing the acquired compression-encoded drawing data by the Adobe Flex end further includes:
Adobe Flex 端将解码解压縮后的绘图数据与缓存查询到的绘图 数据融合并根据融合绘图数据进行绘图。  The Adobe Flex side fuses the decoded decompressed drawing data with the cached queryed drawing data and plots it based on the fused drawing data.
本发明还提供一种数据处理系统,包括 Adobe Flex模块和 java swing模块;  The invention also provides a data processing system, including an Adobe Flex module and a java swing module;
所述 Adobe Flex模块,用于通过 javascript向 java swing模块发 送数据获取请求,所述数据获取请求包括起始端序列号和结束端序列 所述 java swing模块,用于根据所述起始端序列号和结束端序列 号查找对应绘图数据;将所述绘图数据经过 zlib压縮并通过 base64 编码得到压縮编码后的绘图数据;通过 javascript发送所述压縮并编 码后的绘图数据到 Adobe Flex模块。  The Adobe Flex module is configured to send a data acquisition request to the java swing module by using a javascript module, where the data acquisition request includes a start serial number and an end sequence, and the java swing module is configured to use the start serial number and the end. The end serial number is searched for corresponding drawing data; the drawing data is compressed by zlib and the compressed encoded drawing data is obtained by base64 encoding; the compressed and encoded drawing data is sent to the Adobe Flex module through javascript.
进一步的 ,所述 Adobe Flex模块还用于:  Further, the Adobe Flex module is further used to:
接收用户区域选择指令,所述选择指令至少包括起始端序列号和 结束端序列号。 Receiving a user area selection instruction, the selection instruction including at least a start serial number and End serial number.
进一步的 ,所述 Adobe Flex模块后还用于:  Further, the Adobe Flex module is further used to:
对所述获取的压縮编码后的绘图数据进行解码和解压縮得到解 码和解压縮后的绘图数据。  The obtained compression-encoded drawing data is decoded and decompressed to obtain decoded and decompressed drawing data.
进一步的 ,所述 Adobe Flex模块还用于:  Further, the Adobe Flex module is further used to:
将解码解压縮后的绘图数据与缓存查询到的绘图数据融合并根 据融合绘图数据进行绘图。  The decoded decompressed drawing data is merged with the cached drawing data and plotted according to the fused drawing data.
与现有技术相比,本申请包括以下优点:本发明中 java swing端 在通过 javascript 向 Adobe Flex端发送绘图数据时先将该数据通过 zlib压縮在进行 base64编码,将传输的绘图数据量减小,这样在大数 据量绘图时不必因为 javascript数据处理能力的限制而导致绘图响应 变慢,提高了绘图响应速率。 附图说明  Compared with the prior art, the present application includes the following advantages: in the present invention, when the java swing end sends the drawing data to the Adobe Flex end through javascript, the data is first compressed by zlib in the base64 encoding, and the amount of the transferred drawing data is reduced. Small, so in the drawing of large data amount, it is not necessary to slow down the drawing response due to the limitation of javascript data processing capability, and the drawing response rate is improved. DRAWINGS
图 1为本发明一种数据处理方法一实施例的流程示意图 ; 图 2为本发明一种数据处理系统一实施例的结构示意图。 具体实施方式  1 is a schematic flow chart of an embodiment of a data processing method according to the present invention; and FIG. 2 is a schematic structural diagram of an embodiment of a data processing system according to the present invention. detailed description
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结 合附图和具体实施方式对本申请作进一步详细的说明。 参照图 1 ,示出了本申请一种数据处理方法,包括:  The above described objects, features, and advantages of the present invention will become more apparent from the following detailed description. Referring to FIG. 1, a data processing method of the present application is shown, including:
步骤 S101、 Adobe Flex端通过 javascript向 java swing端发送数 据获取请求,所述数据获取请求包括起始端序列号和结束端序列号; 进一步的 ,在步骤 S101前本实施例还可以包括:  Step S101: The Adobe Flex end sends a data acquisition request to the java swing end through the javascript, where the data acquisition request includes a start end serial number and an end end serial number. Further, before step S101, the embodiment may further include:
Adobe Flex端接收用户区域选择指令,所述选择指令至少包括起 始端序列号和结束端序列号。  The Adobe Flex terminal receives a user area selection instruction including at least a start serial number and an end serial number.
当用户选取特定区域进行绘图时,Adobe Flex端会接收到根据所 述区域形成的区域选择指令,该指令至少要包括一个起始端序列号和 一个结束端序列号,例如起始端序列号为 20130101 ,结束端序列号 为 20130531 ,意味着用户选择的区域是从 20130101至 20130531间 的所有数据。 Adobe Flex 端接收到该区域选择指令后,需要向 java swing端请求数据,则根据该区域选择指令向 java swmg端发送数据 获取请求,所述数据获取请求包括起始端序列号和结束端序列号。 When the user selects a specific area for drawing, the Adobe Flex end receives an area selection instruction formed according to the area, and the instruction includes at least a start serial number and an end serial number, for example, the start serial number is 20130101. End serial number It is 20130531, which means that the area selected by the user is all data from 20130101 to 20130531. After receiving the area selection instruction, the Adobe Flex side needs to request data from the java swing end, and then sends a data acquisition request to the java swmg end according to the area selection instruction, where the data acquisition request includes a start end serial number and an end end serial number.
步骤 S102、 java swing端根据所述起始端序列号和结束端序列号 查找对应绘图数据;  Step S102: The java swing end searches for corresponding drawing data according to the start end serial number and the end end serial number;
Java swing端接收到 Adobe Flex端发送的数据请求指令后,根据 其中包含的起始端序列号和结束端序列号查找本端的数据,例如从起 始端 20130101至 20130531间的所有数据。  After receiving the data request command sent by the Adobe Flex side, the Java swing terminal searches the local end data according to the start serial number and the end serial number contained therein, for example, all data from the beginning 20130101 to 20130531.
步骤 S103、 java swing端将所述绘图数据经过 zlib压縮并通过 base64编码得到压縮编码后的绘图数据;  Step S103, the java swing end compresses the drawing data by zlib and obtains the compression-encoded drawing data by base64 encoding;
Java swmg端查找到对应的数据后,将所述数据先经过 zlib压縮, 然后再通过 base64编码;压縮的目的是减小数据体积,但由于压縮 后的数据可能出现特定的字符,该特定字符可能在传输过程中被识别 成某些控制字符,例如在 java swing端发送过程中被识别成 java swing 端的某一控制字符,或经过 javascript传输时,被 javascript识别成对 应的控制字符,还或者是 Adobe Flex端接收过程中被 Adobe Flex端 识别成控制字符,这样会导致传输异常 , 因此需要再次通过 base64 编码,编码后的数据将不会出现控制字符。  After the Java swmg end finds the corresponding data, the data is first compressed by zlib and then encoded by base64; the purpose of compression is to reduce the data volume, but since the compressed data may have specific characters, the A specific character may be recognized as some control character during transmission, for example, a certain control character recognized as a java swing end during the sending process of the java swing terminal, or recognized by the javascript as a corresponding control character when transmitted through javascript. Or the Adobe Flex side is recognized as a control character by the Adobe Flex end, which will cause the transmission to be abnormal, so it needs to be encoded again by base64, and the encoded data will not have control characters.
步骤 S104、 java swing端通过 javascript发送所述压縮并编码后 的绘图数据到 Adobe Flex端。  Step S104: The java swing end sends the compressed and encoded drawing data to the Adobe Flex end through javascript.
进一步的 ,步骤 S104后还可以包括:  Further, after step S104, the method may further include:
Adobe Flex 端对所述获取的压縮编码后的绘图数据进行解码和 解压縮得到解码和解压縮后的绘图数据。  The obtained Flex-encoded drawing data is decoded and decompressed by the Adobe Flex end to obtain decoded and decompressed drawing data.
进一步的 ,所述 Adobe Flex端对所述获取的压縮编码后的绘图 数据进行解码和解压縮后还包括: Adobe Flex端将解码解压縮后的绘 图数据与缓存查询到的绘图数据融合并根据融合绘图数据进行绘图。  Further, the Adobe Flex end decodes and decompresses the acquired compression-encoded drawing data, and further includes: the Adobe Flex end fuses the decoded decompressed drawing data with the cached query drawing data according to the Blend drawing data for drawing.
在本发明实施例中 , java swing端在向 Adobe Flex端发送绘图数 据之前,先将该绘图数据通过 ζΙ 压縮减小体积,并将压縮后的绘图 数据通过 base64编码以避免压縮后的数据出现 javascript控制字符, 这样就将绘图数据的体积变小,避免了绘图数据过大而因为 javascript 处理能力导致的绘图响应变慢,提高了绘图响应。 In the embodiment of the present invention, before sending the drawing data to the Adobe Flex end, the java swing end reduces the volume by compressing the drawing data, and compresses the drawing. The data is encoded by base64 to avoid the javascript control characters in the compressed data, which reduces the volume of the drawing data, avoids the drawing data being too large and the drawing response is slow due to the processing capability of the javascript, and the drawing response is improved.
对于系统实施例而言,由于其与方法实施例基本相似,所以描述 的比较简单,相关之处参见方法实施例的部分说明即可。  For the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
参照图 2 ,本发明还提供一种数据处理系统,包括 Adobe Flex 模, 21和 java swing模块 22;  2, the present invention also provides a data processing system, including an Adobe Flex module, 21 and a java swing module 22;
所述 Adobe Flex模块 21 ,用于通过 javascript向 java swing模块 22发送数据获取请求,所述数据获取请求包括起始端序列号和结束端 序列号;  The Adobe Flex module 21 is configured to send a data acquisition request to the java swing module 22 by using a javascript module, where the data acquisition request includes a start serial number and an end serial number;
所述 java swing模块 22,用于根据所述起始端序列号和结束端序 列号查找对应绘图数据;将所述绘图数据经过 zlib压縮并通过 base64 编码得到压縮编码后的绘图数据;通过 javascript发送所述压縮并编 码后的绘图数据到 Adobe Flex模块 21。  The java swing module 22 is configured to search for corresponding drawing data according to the start end serial number and the end end serial number; compress the drawing data through zlib and obtain compression-encoded drawing data through base64 encoding; The compressed and encoded drawing data is sent to the Adobe Flex module 21.
进一步的 ,所述 Adobe Flex模块 21还用于:  Further, the Adobe Flex module 21 is further configured to:
接收用户区域选择指令,所述选择指令至少包括起始端序列号和 结束端序列号。  A user area selection instruction is received, the selection instruction including at least a start end serial number and an end end serial number.
进一步的 ,所述 Adobe Flex模块 21后还用于:  Further, the Adobe Flex module 21 is further used to:
对所述获取的压縮编码后的绘图数据进行解码和解压縮得到解 码和解压縮后的绘图数据。  The obtained compression-encoded drawing data is decoded and decompressed to obtain decoded and decompressed drawing data.
进一步的 ,所述 Adobe Flex模块 21还用于:  Further, the Adobe Flex module 21 is further configured to:
将解码解压縮后的绘图数据与缓存查询到的绘图数据融合并根 据融合绘图数据进行绘图。  The decoded decompressed drawing data is merged with the cached drawing data and plotted according to the fused drawing data.
在本发明实施例中 , java swing模块 22在向 Adobe Flex模块 21 发送绘图数据之前,先将该绘图数据通过 zKb压縮减小体积,并将压 縮后的绘图数据通过 base64编码以避免压縮后的数据出现 javascript 控制字符,这样就将绘图数据的体积变小,避免了绘图数据过大而因 为 javascript处理能力导致的绘图响应变慢,提高了绘图响应。 以上对本申请所提供的一种数据处理方法和系统,进行了详细介绍 , 本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上 实施例的说明只是用于帮助理解本申请的方法及其核心思想; 同时, 对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及 应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对 本申请的限制。 In the embodiment of the present invention, before sending the drawing data to the Adobe Flex module 21, the java swing module 22 first reduces the volume by zKb compression, and compresses the compressed drawing data through base64 encoding to avoid compression. After the data appears javascript control characters, this will reduce the size of the drawing data, avoiding the drawing data is too large and the drawing response is slow due to the processing power of javascript, which improves the drawing response. The above is a detailed description of a data processing method and system provided by the present application. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the present application. The method and its core idea; at the same time, those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and the scope of application, in summary, the contents of this specification should not be construed as Application restrictions.

Claims

1、 一种数据处理方法,其特征在于,包括: 1. A data processing method, characterized by including:
Adobe Flex端通过 javascript向 java swing端发送数据获耳又请求, 所述数据获取请求包括起始端序列号和结束端序列号; The Adobe Flex end sends a data acquisition request to the Java Swing end through javascript. The data acquisition request includes the starting end serial number and the ending end serial number;
所述 java swing端根据所述起始端序列号和结束端序列号查找对 应绘图数据; The java swing end searches for the corresponding drawing data based on the starting end sequence number and the ending end sequence number;
所述 java swing端将所述绘图数据经过 zlib压縮并通过 base64 编码得到压縮编码后的绘图数据; The java swing end compresses the drawing data with zlib and encodes it with base64 to obtain the compressed and encoded drawing data;
所述 java swing端通过 javascript发送所述压縮并编码后的绘图 数据到 Adobe Flex端。 The java swing end sends the compressed and encoded drawing data to the Adobe Flex end through javascript.
2、 根据权利要求 1所述的方法,其特征在于,所述 Adobe Flex 端通过 javascript向 java swing端发送数据获取请求,所述数据获取请 求包括起始端序列号和结束端序列号前包括: 2. The method according to claim 1, characterized in that the Adobe Flex terminal sends a data acquisition request to the Java swing terminal through javascript, and the data acquisition request includes the starting end serial number and the ending end serial number before including:
Adobe Flex端接收用户区域选择指令,所述选择指令至少包括起 始端序列号和结束端序列号。 The Adobe Flex terminal receives user area selection instructions, which at least include a starting end serial number and an ending end serial number.
3、根据权利要求 1或 2所述的方法,其特征在于,所述 java swing 端通过 javascript发送所述压縮编码后的绘图数据到 Adobe Flex端后 包括: 3. The method according to claim 1 or 2, characterized in that, after the java swing terminal sends the compressed and encoded drawing data to the Adobe Flex terminal through javascript, it includes:
Adobe Flex 端对所述获取的压縮编码后的绘图数据进行解码和 解压縮得到解码和解压縮后的绘图数据。 The Adobe Flex end decodes and decompresses the obtained compressed and encoded drawing data to obtain decoded and decompressed drawing data.
4、 根据权利要求 3所述的方法,其特征在于,所述 Adobe Flex 端对所述获取的压縮编码后的绘图数据进行解码和解压縮后还包括: 将解码解压縮后的绘图数据与缓存查询到的绘图数据融合并根 据融合绘图数据进行绘图。 4. The method according to claim 3, characterized in that, after the Adobe Flex terminal decodes and decompresses the obtained compressed and encoded drawing data, it further includes: combining the decoded and decompressed drawing data with Cache the queried drawing data fusion and draw based on the fused drawing data.
5、一种数据处理系统,其特征在于,包括 Adobe Flex模块和 java swing模块; 5. A data processing system, characterized by including an Adobe Flex module and a java swing module;
所述 Adobe Flex模块,用于通过 javascript向 java swing模块发 送数据获取请求,所述数据获取请求包括起始端序列号和结束端序列 所述」ava swing模块,用于根据所述起始端序列号和结束端序列 号查找对应绘图数据;将所述绘图数据经过 zlib压縮并通过 base64 编码得到压縮编码后的绘图数据;通过 javascript发送所述压縮并编 码后的绘图数据到 Adobe Flex模块。 The Adobe Flex module is used to send a data acquisition request to the java swing module through javascript. The data acquisition request includes a starting end sequence number and an ending end sequence. The "ava swing module" is used to find the corresponding drawing data according to the starting end serial number and the ending end serial number; compress the drawing data through zlib and base64 encoding to obtain the compressed and encoded drawing data; through javascript Send the compressed and encoded drawing data to the Adobe Flex module.
6、 根据权利要求 5所述的系统,其特征在于,所述 Adobe Flex 模块还用于: 6. The system according to claim 5, wherein the Adobe Flex module is also used for:
接收用户区域选择指令,所述选择指令至少包括起始端序列号和 结束端序列号。 Receive a user area selection instruction, which at least includes a starting end sequence number and an ending end sequence number.
7、根据权利要求 5或 6所述的系统,其特征在于所述 Adobe Flex 模块后还用于: 7. The system according to claim 5 or 6, characterized in that the Adobe Flex module is also used for:
对所述获取的压縮编码后的绘图数据进行解码和解压縮得到解 码和解压縮后的绘图数据。 The obtained compressed and encoded drawing data is decoded and decompressed to obtain decoded and decompressed drawing data.
8、 根据权利要求 7所述的系统,其特征在于,所述 Adobe Flex 模块还用于: 8. The system according to claim 7, wherein the Adobe Flex module is also used for:
将解码解压縮后的绘图数据与缓存查询到的绘图数据融合并根 据融合绘图数据进行绘图。 Fuse the decoded and decompressed drawing data with the drawing data queried from the cache and draw based on the fused drawing data.
PCT/CN2014/079151 2013-06-08 2014-06-04 Data processing method and system WO2014194823A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013102315406A CN103353840A (en) 2013-06-08 2013-06-08 Data processing method and system
CN201310231540.6 2013-06-08

Publications (2)

Publication Number Publication Date
WO2014194823A2 true WO2014194823A2 (en) 2014-12-11
WO2014194823A3 WO2014194823A3 (en) 2015-01-29

Family

ID=49310214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079151 WO2014194823A2 (en) 2013-06-08 2014-06-04 Data processing method and system

Country Status (2)

Country Link
CN (1) CN103353840A (en)
WO (1) WO2014194823A2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353840A (en) * 2013-06-08 2013-10-16 深圳市华傲数据技术有限公司 Data processing method and system
CN113504913B (en) * 2021-09-09 2021-12-03 浩鲸云计算科技股份有限公司 Automatic Adobe Flex code conversion method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004706A (en) * 2007-01-17 2007-07-25 Ut斯达康通讯有限公司 Diagnostic system in use for Java application
US7861213B2 (en) * 2006-09-05 2010-12-28 Oracle International Corporation Mechanism for developing AJax applications using java swing framework and method for using the same
US20110314152A1 (en) * 2010-06-21 2011-12-22 Chad Loder Systems and methods for determining compliance of references in a website
US8370862B1 (en) * 2010-09-30 2013-02-05 Emc Corporation Communicating between software environments
CN103353840A (en) * 2013-06-08 2013-10-16 深圳市华傲数据技术有限公司 Data processing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880685B (en) * 2012-09-13 2015-06-24 北京航空航天大学 Method for interval and paging query of time-intensive B/S (Browser/Server) with large data size
CN103092626B (en) * 2013-02-04 2015-10-14 福州大学 Based on the rich internet application process of Flex and web3D technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7861213B2 (en) * 2006-09-05 2010-12-28 Oracle International Corporation Mechanism for developing AJax applications using java swing framework and method for using the same
CN101004706A (en) * 2007-01-17 2007-07-25 Ut斯达康通讯有限公司 Diagnostic system in use for Java application
US20110314152A1 (en) * 2010-06-21 2011-12-22 Chad Loder Systems and methods for determining compliance of references in a website
US8370862B1 (en) * 2010-09-30 2013-02-05 Emc Corporation Communicating between software environments
CN103353840A (en) * 2013-06-08 2013-10-16 深圳市华傲数据技术有限公司 Data processing method and system

Also Published As

Publication number Publication date
CN103353840A (en) 2013-10-16
WO2014194823A3 (en) 2015-01-29

Similar Documents

Publication Publication Date Title
TWI610564B (en) Static frame image quality improvement for sink displays
KR101691446B1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
CN111262876B (en) Data processing method, device and equipment based on block chain and storage medium
CN103392179A (en) Method and device for acquiring page resources, browser and mobile terminal
US20140317418A1 (en) Server, client device, and usb redirection method
WO2016115787A1 (en) Data synchronization method and data synchronization system for multi-system device, and terminal
US20170223393A1 (en) Methods and devices for image loading and methods and devices for video playback
JP2015520993A5 (en)
US20240212650A1 (en) Wireless programmable media processing system
CN110494845A (en) Control device, program updating system, method for updating program
EP2869533A1 (en) Data distribution method and device
WO2014194823A2 (en) Data processing method and system
CN114039973A (en) File transmission method, device and storage medium
CN102752320B (en) Proxy server active compression method and proxy server
US9374413B2 (en) Client terminal, server, and distributed processing method
CN105025343A (en) Caching method and device of TS video
US9819958B2 (en) Drawing system, information processing apparatus and drawing control method which switch drawing from still image data to video image data
CN110673813B (en) Data processing method and device, electronic equipment and medium
CN113014551B (en) Data decompression method, data transmission method based on data decompression method, computer device and readable storage medium
CN107454462B (en) Data transmission method, device and system
WO2015010504A1 (en) Data processing method and system
CN102271192A (en) Mobile phone web browser
CN118118692A (en) Video code stream transmission and analysis method, device and equipment
CN104811805A (en) System for starting television box application through mobile terminal and method thereof
US10203849B2 (en) Multimedia playing method and apparatus based on android system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14807439

Country of ref document: EP

Kind code of ref document: A2

122 Ep: pct application non-entry in european phase

Ref document number: 14807439

Country of ref document: EP

Kind code of ref document: A2