CN103353840A - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN103353840A
CN103353840A CN2013102315406A CN201310231540A CN103353840A CN 103353840 A CN103353840 A CN 103353840A CN 2013102315406 A CN2013102315406 A CN 2013102315406A CN 201310231540 A CN201310231540 A CN 201310231540A CN 103353840 A CN103353840 A CN 103353840A
Authority
CN
China
Prior art keywords
data
terminal sequence
draw data
sequence number
adobe flex
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2013102315406A
Other languages
Chinese (zh)
Inventor
刘航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaao Data Technology Co Ltd
Original Assignee
Shenzhen Huaao Data Technology Co Ltd
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 Shenzhen Huaao Data Technology Co Ltd filed Critical Shenzhen Huaao Data Technology Co Ltd
Priority to CN2013102315406A priority Critical patent/CN103353840A/en
Publication of CN103353840A publication Critical patent/CN103353840A/en
Priority to PCT/CN2014/079151 priority patent/WO2014194823A2/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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

The invention provides a data processing method. The data processing method comprises the following steps: an Adobe Flex side sends a data acquisition request to a java swing side through a javascript, wherein the data acquisition request comprises a starting end serial number and a finishing end serial number; according to the starting end serial number and the finishing end serial number, the java swing side searches corresponding drawing data; the java swing side compresses the drawing data through zlib and encodes the drawing data through base64 to obtain the compressed and encoded drawing data; the java swing side sends the compressed and encoded drawing data to the Adobe Flex side through the javascript. The embodiment of the invention further provides a corresponding data processing system. When the java swing side sends the drawing data to the Adobe Flex side through the javascript, the drawing data is compressed through the zlib and encoded through the base64 so as to reduce the size of the transmitted drawing data, so that during drawing based on a large amount of data, the drawing response is not slowed by the javascript data processing capability, and accordingly, the drawing response rate is improved.

Description

A kind of data processing method and system
Technical field
The application relates to the data technique field, particularly relates to a kind of data processing method and system.
Background technology
In the java swing program that embeds Adobe Flex application, customer end A dobe Flex is generally undertaken by javascript with communicating by letter of java swing end.In existing the application, because Adobe Flex substantially is small data with communicating by letter of java swing end, the data-handling capacity of javascript can guarantee that Adobe Flex end is normal with communicating by letter of java swing end.
In the prior art, Adobe Flex end is used for graphing and user interactions, and java swing end extracts data from database.After Adobe Flex end gets access to drawing for order, obtain the data of all segments corresponding to drawing for order from java swing end according to drawing for order, then drawn the figure of user selected areas section according to described data by Adobe Flex end.Adobe Flex gets access to all data by once communicating by letter like this, has with java swing end is mutual to lack, and graph rendering is advantage timely.
In the prior art, along with the increase of present graphical desired data, be limited by the restriction of the data-handling capacity of javascript, it is longer that Adobe Flex end obtains time of draw data, causes the speed of graphing can be obviously slack-off.So in the situation that draw data increases, the data-handling capacity of javascript easily becomes the bottleneck of whole communication process.
Summary of the invention
The application's technical matters to be solved provides a kind of data processing method.
Accordingly, the application also provides the system for data processing method.
In order to address the above problem, the application discloses a kind of data processing method, comprising:
Adobe Flex end sends data acquisition request by javascript to java swing end, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Described java swing end is according to described initiating terminal sequence number and finish terminal sequence and number search corresponding draw data;
Described java swing end obtains draw data behind the compressed encoding with described draw data through the zlib compression and by the base64 coding;
Described java swing end is held to Adobe Flex by the draw data that javascript sends behind described compression and the coding.
Further, described Adobe Flex end sends data acquisition request by javascript to java swing end, and described data acquisition request comprises before comprising the initiating terminal sequence number and finishing terminal sequence number:
Adobe Flex termination is received the user area selection instruction, and described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
Further, described java swing end comprises after Adobe Flex holds by the draw data that javascript sends behind the described compressed encoding:
Adobe Flex end is to decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
Further, also comprise after described Adobe Flex end is decoded and decompressed the draw data behind the described compressed encoding that obtains:
Adobe Flex end will decode after decompressing draw data and caching query to the draw data fusion and draw according to the fusion draw data.
The present invention also provides a kind of data handling system, comprises Adobe Flex module and java swing module;
Described Adobe Flex module is used for sending data acquisition request by javascript to java swing module, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Described java swing module is used for according to described initiating terminal sequence number and finishes terminal sequence and number search corresponding draw data; Described draw data is sent draw data behind described compression and the coding to Adobe Flex module through zlib compression and the draw data that obtains behind the compressed encoding by the base64 coding by javascript.
Further, described Adobe Flex module also is used for:
Receive the user area selection instruction, described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
Further, also be used for after the described Adobe Flex module:
To decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
Further, described Adobe Flex module also is used for:
Draw data after decoding decompressed and caching query to draw data merge and draw according to the fusion draw data.
Compared with prior art, the application comprises following advantage: java swing end is compressed in and carries out the base64 coding first this data communication device being crossed zlib when Adobe Flex end sends draw data by javascript among the present invention, the draw data amount of transmission is reduced, the response that needn't cause because of the restriction of javascript data-handling capacity like this drawing when big data quantity is drawn is slack-off, has improved the drawing speed of response.
Description of drawings
Fig. 1 is the schematic flow sheet of a kind of data processing method one embodiment of the present invention;
Fig. 2 is the structural representation of a kind of data handling system one embodiment of the present invention.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments the application is described in further detail.
With reference to Fig. 1, show a kind of data processing method of the application, comprising:
Step S101, Adobe Flex end sends data acquisition request by javascript to java swing end, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Further, the present embodiment can also comprise before step S101:
Adobe Flex termination is received the user area selection instruction, and described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
When the user chooses the specific region and draws, Adobe Flex end can receive the regional selection instruction that forms according to described zone, this instruction will comprise that at least an initiating terminal sequence number and one finish terminal sequence number, for example the initiating terminal sequence number is 20130101, finishing terminal sequence number is 20130531, and the zone that means user selection is all data of from 20130101 to 20130531.After Adobe Flex termination is received this zone selection instruction, need to be to java swing end request msg, then send data acquisition request according to this zone selection instruction to java swing end, described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number.
Step S102, java swing end is according to described initiating terminal sequence number and finish terminal sequence and number search corresponding draw data;
After Java swing termination is received the request of data instruction that Adobe Flex end sends, according to the initiating terminal sequence number that wherein comprises with finish the data that terminal sequence number is searched local terminal, for example from all data of 20130101 to 20130531 of initiating terminals.
Step S103, java swing end obtains draw data behind the compressed encoding with described draw data through the zlib compression and by the base64 coding;
After Java swing end finds corresponding data, described data are compressed through zlib first, and then encoded by base64; The purpose of compression is to reduce data volume, but because specific character may appear in the data after the compression, this specific character may be identified as some control character in transmission course, for example in java swing end process of transmitting, be identified as a certain control character of java swing end, or through javascript when transmission, be identified as corresponding control character by javascript, also or in the Adobe Flex termination receipts process be identified as control character by Adobe Flex end, can cause transmission abnormality like this, therefore need again to encode by base64, the data behind the coding will control character can not occur.
Step S104, java swing the end by javascript send described compression and the coding after draw data hold to Adobe Flex.
Further, can also comprise behind the step S104:
Adobe Flex end is to decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
Further, also comprise after described Adobe Flex end is decoded and decompressed the draw data behind the described compressed encoding that obtains: Adobe Flex end will decode after decompressing draw data and caching query to the draw data fusion and draw according to the fusion draw data.
In embodiments of the present invention, java swing end is before sending draw data to Adobe Flex end, first this draw data is reduced volume by the zlib compression, and the javascript control character appears in the data of the draw data after will compressing after encoding to avoid compressing by base64, so just with the smaller volume of draw data, avoided draw data excessive and because the drawing that causes of javascript processing power to should be slack-off, having improved the response of drawing.
For system embodiment, because itself and embodiment of the method basic simlarity, so this that describe is simpler, relevant part gets final product referring to the part explanation of embodiment of the method.
With reference to Fig. 2, the present invention also provides a kind of data handling system, comprises Adobe Flex mould, and 21 and java swing module 22;
Described Adobe Flex module 21 is used for sending data acquisition request by javascript to java swing module 22, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Described java swing module 22 is used for according to described initiating terminal sequence number and finishes terminal sequence and number search corresponding draw data; Described draw data is obtained draw data behind the compressed encoding through the zlib compression and by the base64 coding; By javascript send described compression and the coding after draw data to Adobe Flex module 21.
Further, described Adobe Flex module 21 also is used for:
Receive the user area selection instruction, described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
Further, also be used for after the described Adobe Flex module 21:
To decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
Further, described Adobe Flex module 21 also is used for:
Draw data after decoding decompressed and caching query to draw data merge and draw according to the fusion draw data.
In embodiments of the present invention, java swing module 22 is before sending draw data to Adobe Flex module 21, first this draw data is reduced volume by the zlib compression, and the javascript control character appears in the data of the draw data after will compressing after encoding to avoid compressing by base64, so just with the smaller volume of draw data, avoided draw data excessive and because the drawing response that the javascript processing power causes is slack-off, having improved the response of drawing.
Above a kind of data processing method and the system that the application is provided, be described in detail, used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (8)

1. a data processing method is characterized in that, comprising:
Adobe Flex end sends data acquisition request by javascript to java swing end, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Described java swing end is according to described initiating terminal sequence number and finish terminal sequence and number search corresponding draw data;
Described java swing end obtains draw data behind the compressed encoding with described draw data through the zlib compression and by the base64 coding;
Described java swing end is held to Adobe Flex by the draw data that javascript sends behind described compression and the coding.
2. method according to claim 1 is characterized in that, described Adobe Flex end sends data acquisition request by javascript to java swing end, and described data acquisition request comprises before comprising the initiating terminal sequence number and finishing terminal sequence number:
Adobe Flex termination is received the user area selection instruction, and described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
3. method according to claim 1 and 2 is characterized in that, described java swing end comprises after Adobe Flex holds by the draw data that javascript sends behind the described compressed encoding:
Adobe Flex end is to decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
4. method according to claim 3 is characterized in that, also comprises after described Adobe Flex end is decoded and decompressed the draw data behind the described compressed encoding that obtains:
Draw data after decoding decompressed and caching query to draw data merge and draw according to the fusion draw data.
5. a data handling system is characterized in that, comprises Adobe Flex module and java swing module;
Described Adobe Flex module is used for sending data acquisition request by javascript to java swing module, and described data acquisition request comprises the initiating terminal sequence number and finishes terminal sequence number;
Described java swing module is used for according to described initiating terminal sequence number and finishes terminal sequence and number search corresponding draw data; Described draw data is sent draw data behind described compression and the coding to Adobe Flex module through zlib compression and the draw data that obtains behind the compressed encoding by the base64 coding by javascript.
6. system according to claim 5 is characterized in that, described Adobe Flex module also is used for:
Receive the user area selection instruction, described selection instruction comprises at least the initiating terminal sequence number and finishes terminal sequence number.
7. according to claim 5 or 6 described systems, it is characterized in that, also be used for after the described Adobe Flex module:
To decode and decompress the draw data after being decoded and decompressing of the draw data behind the described compressed encoding that obtains.
8. system according to claim 7 is characterized in that, described Adobe Flex module also is used for:
Draw data after decoding decompressed and caching query to draw data merge and draw according to the fusion draw data.
CN2013102315406A 2013-06-08 2013-06-08 Data processing method and system Pending CN103353840A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN103353840A true CN103353840A (en) 2013-10-16

Family

ID=49310214

Family Applications (1)

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

Country Status (2)

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

Cited By (2)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880685A (en) * 2012-09-13 2013-01-16 北京航空航天大学 Method for interval and paging query of time-intensive B/S (Browser/Server) with large data size
US8370862B1 (en) * 2010-09-30 2013-02-05 Emc Corporation Communicating between software environments
CN103092626A (en) * 2013-02-04 2013-05-08 福州大学 Rich internet application method based on Flex and web three-dimensional (3D) technology

Family Cites Families (4)

* 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
CN100543697C (en) * 2007-01-17 2009-09-23 Ut斯达康通讯有限公司 A kind of diagnostic system that is used for the Java application
US9251282B2 (en) * 2010-06-21 2016-02-02 Rapid7 LLC Systems and methods for determining compliance of references in a website
CN103353840A (en) * 2013-06-08 2013-10-16 深圳市华傲数据技术有限公司 Data processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370862B1 (en) * 2010-09-30 2013-02-05 Emc Corporation Communicating between software environments
CN102880685A (en) * 2012-09-13 2013-01-16 北京航空航天大学 Method for interval and paging query of time-intensive B/S (Browser/Server) with large data size
CN103092626A (en) * 2013-02-04 2013-05-08 福州大学 Rich internet application method based on Flex and web three-dimensional (3D) technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
L799623787: "《Delphi Base64编码/解码及Zlib压缩/解压》", 《HTTP://BLOG.CSDN.NET/L799623787/ARTICLE/DETAILS/802998》, 26 September 2012 (2012-09-26) *

Cited By (3)

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

Also Published As

Publication number Publication date
WO2014194823A2 (en) 2014-12-11
WO2014194823A3 (en) 2015-01-29

Similar Documents

Publication Publication Date Title
EP2285029B1 (en) Data transmission method, transmission system and data transmitter
CN100444606C (en) Data communication system and method of hand-held apparatus
RU2630750C1 (en) Device and method for encoding and decoding initial data
CN113316124A (en) Vehicle machine interconnection method and device
CN104412601A (en) System and method for single KVM client accommodating multiple different video compression technologies
CN103346800B (en) A kind of data compression method and device
CN110990358B (en) Decompression method, electronic equipment and computer readable storage medium
CN104486434A (en) Mobile terminal and file upload and download methods of mobile terminal
CN105281843A (en) Two-dimensional code transmission and reception methods and transmission and reception devices
CN103813181A (en) System and method for optimizing video
CN104935612A (en) Data processing method and server
CN103516788A (en) Data pushing method and Flash client terminal and server thereof
TWI544419B (en) Encoding method and decoding method for two-dimensional barcode, and electronic device
CN103888348A (en) E-mail application system and method and device for transferring E-mails
CN101668018A (en) Network transmission method and system therefor
CN103246557A (en) Method and device for calling application information in cross process mode
CN103353840A (en) Data processing method and system
CN105490913A (en) Instant message processing method and device
CN110719573B (en) Information transmission method and device, terminal equipment and storage medium
CN111027330A (en) Translation system, translation method, translation machine, and storage medium
CN116193160A (en) Digital watermark embedding method, device, equipment and medium
CN110601793B (en) Method and device for determining data transmission rate, assembly and storage medium
CN105450504A (en) Processing method and system for picture link
CN101471927A (en) Method and device for processing document transmission and document transmission system
CN104320644A (en) Method, system and device of encoding and decoding depth information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Liu Hang

Inventor after: Jia Xibei

Inventor before: Liu Hang

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LIU HANG TO: LIU HANG JIA XIBEI

RJ01 Rejection of invention patent application after publication

Application publication date: 20131016

RJ01 Rejection of invention patent application after publication