Unlock instant, AI-driven research and patent intelligence for your innovation.

Data compression method and apparatus

一种数据压缩、压缩文件的技术,应用在数据处理领域,能够解决无法去除CSS文件冗余代码、CSS文件压缩有限、影响网络传输速度等问题,达到缩短长度、节省带宽、提高压缩比的效果

Active Publication Date: 2016-05-11
ADVANCED NEW TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these compression methods cannot remove a large number of redundant codes in CSS files, and the compression of CSS files is very limited, and there are still problems of wasting bandwidth and affecting network transmission speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data compression method and apparatus
  • Data compression method and apparatus
  • Data compression method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0060] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a data compression method of the present application, which may specifically include the following steps:

[0061] Step 101, determine the combination parameter in the CSS file, the combination parameter at least includes one of the same selector, the same style name in the same selector, and the same style in different selectors.

[0062] First of all, the CSS file can be the original CSS file without any compression processing, or it can be a CSS file that has been compressed by existing compression methods, such as YUICompress, clean-css, etc. The blanks and comments in the CSS file Characters, invalid characters, et...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the application provides a data compression method and a data compression apparatus. The data compression method comprises: combination parameters in a CSS file are determined, wherein the combination parameters at least include one of an identical selector, an identical style name in the same selector, and a same style in different selectors; whether the combination parameter meets a combination condition is determined; and if so, the combination parameters in the CSS file are combined to obtain a CSS compression file. According to the embodiment of the application, the combination parameters in the CSS file are combined when the combination parameters meet the combination condition, so that the compression ratio is improved on the premise that the security compression is guaranteed; and the length of the CSS file is reduced effectively, the occupied bandwidth is saved, and the network transmission can be carried out well.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a data compression method and a data compression device. Background technique [0002] Cascading Style Sheets (CascadingStyleSheets, CSS) are used to represent document styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standardized Generalized Markup Language). A CSS file exists as a presentation style in a web browser, which defines the rules for displaying a web page and is a text format. CSS can truly separate webpage performance from content. Compared with the performance of traditional HTML, it can precisely control the position and typesetting of objects in webpages at the pixel level, supports almost all font sizes and styles, and has the ability to control webpage objects and models. The ability to edit styles and carry out preliminary interactive design is currently the best performance design language bas...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH03M7/30H03M7/3068H03M7/707G06F40/146H03M7/6011G06F16/986
Inventor 郝立鑫
Owner ADVANCED NEW TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More