CN106202119A - SNB e-book storage organization and wiring method thereof and read method - Google Patents

SNB e-book storage organization and wiring method thereof and read method Download PDF

Info

Publication number
CN106202119A
CN106202119A CN201510230595.4A CN201510230595A CN106202119A CN 106202119 A CN106202119 A CN 106202119A CN 201510230595 A CN201510230595 A CN 201510230595A CN 106202119 A CN106202119 A CN 106202119A
Authority
CN
China
Prior art keywords
content
byte
book
snb
storage
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.)
Withdrawn
Application number
CN201510230595.4A
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.)
Shanghai Xuanting Entertainment Information Technology Co Ltd
Original Assignee
Shanghai Xuanting Entertainment Information 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 Shanghai Xuanting Entertainment Information Technology Co Ltd filed Critical Shanghai Xuanting Entertainment Information Technology Co Ltd
Priority to CN201510230595.4A priority Critical patent/CN106202119A/en
Publication of CN106202119A publication Critical patent/CN106202119A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of SNB e-book storage organization, described SNB e-book storage organization is divided into header file district, content-control district and content regions;Storage no encryption in header file district indicates position and compression method generation information;Content-control district is in storage: chopping rule, metadata quantity, meta-data region takes up room, quantity of documents, directory area take up room, compress directory area takes up room, uncompressed content takes up room, compressed content takes up room, additional information region takes up room;Content regions: the content of storage e-book;The invention also discloses wiring method and the read method of described SNB e-book storage organization.The SNB e-book storage organization of the present invention can overcome partial copyright and persistently load the problem causing the read-write inconvenience of existing e-book storage organization.

Description

SNB e-book storage organization and wiring method thereof and read method
Technical field
The present invention relates to computer realm, particularly relate to a kind of SNB e-book storage organization;The invention still further relates to described The wiring method of SNB e-book storage organization and read method.
Background technology
Along with the high speed development of current science and technology, the Internet is read user and is got more and more, and substantial amounts of user likes at various equipment Upper reading documents, e-book form is put forward high-quality in the storage and distribution of data by this demand read across screen Requirement.
E-book on the Internet has two important feature.One of them feature be a book chapters and sections have free chapters and sections and Dividing of charge chapters and sections, author typically first issues some free chapters and sections when the world view of book has been handed over entrance core on network Vip chapters and sections will be issued the when of heart conflict namely to charge chapters and sections.Also have feature be the reading of e-book be with chapter Joint is unit, and reader once only can download some chapters and sections and read.Two problems above can be attributed to partial copyright Persistently loading two problems, the solution of the two problem is to realize the basis that online charging is read, currently without instrument and Agreement solves this problem.
Invent novel content
The technical problem to be solved in the present invention be to provide one can overcome partial copyright and persistently load cause existing e-book The SNB e-book storage organization of storage organization read-write inconvenience;Present invention also offers described SNB e-book storage organization Wiring method and read method.
For solving the SNB e-book storage organization that the above-mentioned technical problem present invention provides, including:
Described SNB e-book storage organization is divided into header file district, content-control district and content regions;
Header file district accounts for whether 8 bytes encrypt sign position and compression method generation information for storing e-book, first 4 Whether byte storage encrypts sign position, and details encrypted, and such as uses the length of key, the encryption method of employing, The information such as the side-play amount that encrypted section starts, terminate are stored in the additional information region in content-control district, and rear 4 byte storages are adopted Compression algorithm code name.
Content-control district accounts for 36 bytes for storing:
Chopping rule: describe the byte quantity of each segmentation by 4 bytes;
Metadata quantity: describe the quantity of storage metadata group by 4 bytes;
Meta-data region is in the side-play amount of content regions: this side-play amount is that integer number stores by 4 bytes, and these data show unit Data occupy the byte number that content regions starts, and metadata refers to the feature description character string of SNB, and this part is used for expanding The function of SNB e-book storage organization;Described integer number (INTEGER) is the numeric type number not comprising fractional part.
Quantity of documents: describe by 4 bytes and store quantity of documents in the sub-level catalogue that e-schoolbag contains;
Directory area is in the side-play amount of content regions: being that an integer number stores by 4 bytes, the bright directory information of this tables of data accounts for With the byte number behind meta-data region in content regions, directory area refers to a kind of logical partitioning of book, the thematic information of such as book, Chapter List information;
Compression directory area takes up room (taking byte quantity, if can be understood as taking up room): describe by 4 bytes Byte quantity after directory area compression;
Uncompressed content is in the side-play amount of content regions: being that integer number takies 4 bytes, these data show that uncompressed content accounts for With the byte number behind directory area in content regions, uncompressed content generally refers to the free chapters and sections of book;
Compressed content is in the side-play amount of content regions: be that integer number takies 4 bytes, in these data show that compressed content takies Holding the byte number behind uncompressed content regions in district, compressed content is usually the charge chapters and sections of book;
Additional information region is in the side-play amount of content regions: being that integer number takies 4 bytes, these data show that additional information takies Byte number behind compressed content district in content regions, additional information refers to the control information of SNB form, and these control information Comprise the method that SNB uses encryption, the key of encryption, the beginning of encrypted section, the side-play amount of end;
Content regions: the content of storage e-book, at least includes herein below:
Book.snbf storage e-book summary info, summary info comprise the coding of book, front cover, language, publisher, Producer, establishment time;
A kind of special topic of toc.snbf storage e-book divides, and name that the information of storage comprises special topic, describes and comprises Chapter List;
The Chapter List information of toc_content.snbf storage e-book, Chapter List information spinner volume information to be comprised, chapter Section name claims and Chapter List;
Chapter.snbc mainly stores the content of one chapters and sections of e-book.
The wiring method of described SNB e-book storage organization, comprises the following steps:
1) e-book logical file is created: summary file, index file and content file;
Summary file: at least include: version, author, language, title, publisher, making side's information;
Index file: the e-book logical partitioning rule that storage is preset;
Content file: the content of storage one chapters and sections of e-book;
2) write SNB e-book storage organization;
A: obtain the content information of e-book, i.e. obtains the content of snbc class file of composition e-book i.e. chapters and sections Content, the content of the most first encryption recompression book;
B: obtain the index information of e-book, i.e. obtain the snbf class file content of e-book, comprise the summary info of book Book.snbf, thematic information toc.snbf and Chapter List information toc_content.snbf;
C: according to chopping rule, content information and the index information of book being divided into different sections, the calculating of this length is basis The byte-sized of storage book content calculates, it is assumed that the byte-sized of content is that A then A obtains this numerical value divided by 64;
D: will whether encrypt the 1st~the 4th byte indicating position write SNB e-book storage organization;By the code name of compression algorithm 5th~the 8th byte of write SNB e-book storage organization;This step constructs the header file of SNB e-book storage organization District;
E: chopping rule is write the 9th~the 12nd byte of SNB e-book storage organization;
The the 13rd~the 16th byte by metadata quantity write SNB e-book storage organization;
The the 17th~the 20th byte by the meta-data region side-play amount write SNB e-book storage organization in content regions;
Quantity of documents is written to the 21st~the 24th byte of SNB e-book storage organization;
The the 25th~the 28th byte by the directory area side-play amount write SNB e-book storage organization in content regions;
Compression directory area is taken up room and writes the 29th~the 32nd byte of SNB e-book storage organization;
The the 33rd~the 36th byte by the uncompressed content side-play amount write SNB e-book storage organization in content regions;
The the 37th~the 40th byte by the compressed content side-play amount write SNB e-book storage organization in content regions;
The the 41st~the 44th byte by the additional information region side-play amount write SNB e-book storage organization in content regions;
This step builds the content-control district of SNB e-book storage organization;
F: start to write successively the metadata information of book from 45 bytes of SNB e-book storage organization, directory area information, Uncompressed content information, compressed content information and additional content information;This step constructs the interior of SNB e-book storage organization Hold district.
The read method of described SNB e-book storage organization, comprises the following steps:
A) resolve the header file district of SNB e-book storage organization, judge SNB e-book according to the numerical value of the 1st~the 4th byte Whether storage organization is encrypted, and four byte datas read are converted to character, if the character after changing is E, and this SNB File have employed encryption method otherwise this SNB file content and do not encrypts;Numerical value according to the 5th~the 8th byte judges SNB The compression algorithm of e-book storage organization, if by read four byte conversion be this character of character be B; have employed BZIP2 compression algorithm, if 0 have employed GZIP compression algorithm.
B) control zone of SNB e-book storage organization is resolved;
Chopping rule is obtained by the numerical value of the 9th~the 12nd byte storage;
Metadata quantity is obtained by the numerical value of the 13rd~the 16th byte storage;
The meta-data region side-play amount in content regions is obtained by the numerical value of the 17th~the 20th byte storage;
Quantity of documents is obtained by the numerical value of the 21st~the 24th byte storage;
The directory area side-play amount in content regions is obtained by the numerical value of the 25th~the 28th byte storage;
Obtained compression directory area by the numerical value of the 29th~the 32nd byte storage to take up room;
The uncompressed content side-play amount in content regions is obtained by the numerical value of the 33rd~the 36th byte storage;
The compressed content side-play amount in content regions is obtained by the numerical value of the 37th~the 40th byte storage;
The additional information region side-play amount in content regions is obtained by the numerical value of the 41st~the 44th byte storage;
C) resolving metadata, the meta-data region side-play amount in content regions is stored in the 17th~the 20th byte in content-control district In, obtain the numerical value O of content-control district the 17th~the 20th byte, then from the 45th byte~45+O byte be meta-data region; The form of meta-data region is length+content, first obtains the 1st~the 4th byte of meta-data region, then according to these 4 bytes Numerical values recited obtain metadata content, repeat this step and obtain multiple metadata;
D) resolving directory area, directory area takes up room in the 25th~the 28th byte being stored in content-control district, obtains content For P, then from 45+O byte~45+O+P byte be directory area;
If directory area size and compression directory area cause not of uniform size, come according to the compression algorithm of the 5th~the 8th byte storage Decompress directory area.
E) content regions is resolved;
Resolve uncompressed content regions, obtain the numerical value Q of content-control district the 33rd~the 36th byte, then 45+O+P byte~ 45+O+P+Q byte is uncompressed content regions, reads this part and obtains uncompressed content, then according to the 9th~the 12nd The chopping rule of byte storage splits into multiple chapters and sections;
Resolve compressed content district, obtain the numerical value R of content-control district the 37th~the 40th byte, then 45+O+P+Q byte~ 45+O+P+Q+R byte is compressed content district, finds out corresponding decompression according to the compression algorithm code name of header file storage Algorithm decompresses the contents of the section;
Resolve additional information region, obtain the numerical value S of content-control district the 41st~the 44th byte, 45+O+P+Q+R byte~ 45+O+P+Q+R+S byte is additional information region;Obtain encryption method, key length that this partial bytes is recorded;With And the section content that encrypted section information starts, ending message deciphering is corresponding, it is split as chapters and sections according to chopping rule.
Owing to the present invention is to compress according to section and encryption data, a SNB file can exist encryption and unencryption simultaneously Section, therefore can solve certainly partial copyright problem, the SNB Documents Logical of the present invention is made up of multiple files, obtain in Have only to the when of appearance read file header and the chapters and sections information of response, the problem that therefore can solve persistently to load.
Accompanying drawing explanation
The present invention is further detailed explanation with detailed description of the invention below in conjunction with the accompanying drawings:
Fig. 1 is the structural representation of SNB e-book storage organization one embodiment of the present invention.
Detailed description of the invention
As it is shown in figure 1, a kind of SNB e-book storage organization that the present invention provides, including:
SNB e-book storage organization entirety is divided into three districts, i.e. header file district, content-control district and content regions.Header file District's storage encryption and compression information;The division information of storage content regions, content-control district;The content of content regions storage e-book. Described in detail below:
Header file district
X: account for 4 bytes, describes SNB e-book storage organization and adds confidential information.Value P represents and does not encrypts;Value E Represent encryption.
Y: account for 4 bytes, describes SNB e-book storage organization compression algorithm code name.Value B represents and uses BZIP2 pressure Compression algorithm;Value 0 represents GZIP compression algorithm.
Content-control district
A chopping rule: account for 4 bytes, store the byte capacity of every section;
B metadata quantity: account for 4 bytes, storage metadata has how many groups;
C meta-data region is in the side-play amount of content regions: account for 4 bytes, and how many bytes that description content regions starts store The variable information of file.This variable information is mainly used in providing redundant space to extend new merit for SNB e-book storage organization Energy;
D quantity of documents: account for 4 bytes, quantity of documents in the sub-level catalogue that storage e-schoolbag contains;
E directory area is in the side-play amount of content regions: account for 4 bytes, and describe content regions following how many bytes storage is mesh Record information;
F compression directory area takes up room: account for 4 bytes, and the size of directory area after storage compression, if directory area takies Space and compression directory area take up room inconsistent, show that directory area have employed compression algorithm;
The g uncompressed content side-play amount in content regions: account for 4 bytes, describes content regions ensuing how many bytes storage Be unpressed content;
H compressed content is in the side-play amount of content regions: account for 4 bytes, describes content regions ensuing how many bytes storage Be compressed content;
I additional information region is in the side-play amount of content regions: account for 4 bytes, describes content regions following how many bytes storage It is additional information, the information such as additional confidence comprises the method for encryption, the length of key.
Content regions
C: the metadata of storage SNB e-book storage organization, this part is mainly used in expanding format function, is redundant digit According to
E: directory area, the main directory information storing books, comprise three kinds of files
1: the summary info book.snbf of book,
2: thematic information toc.snbf
3: and Chapter List information toc_content.snbf
G: uncompressed content regions, the main free chapters and sections information storing data
H: compressed content district, the main charge chapters and sections information storing books
I: additional information region, the encryption details that main storage SNB e-book storage organization uses, details bag Containing the AES used, the length etc. of key.
The wiring method of a kind of described SNB e-book storage organization, comprises the following steps:
1) e-book logical file is created: summary file, index file and content file;
Summary file: at least include: version, author, language, title, publisher, making side's information;
Index file: the e-book logical partitioning rule that storage is preset;
Content file: the content of storage one chapters and sections of e-book;
2) write SNB e-book storage organization;
A: obtain the content information of e-book, i.e. obtains the content of snbc class file of composition e-book i.e. chapters and sections Content, the content of the most first encryption recompression book;
B: obtain the index information of e-book, i.e. obtain the snbf class file content of e-book, comprise the summary info of book Book.snbf, thematic information toc.snbf and Chapter List information toc_content.snbf;
C: according to certain length, content information and the index information of book being divided into different sections, the calculating of this length is Byte-sized according to storage book content calculates, it is assumed that the byte-sized of content is that A then A obtains this number divided by 64 Value;
D: will whether encrypt the 1st~the 4th byte indicating position write SNB e-book storage organization;By the code name of compression algorithm 5th~the 8th byte of write SNB e-book storage organization;This step constructs the header file of SNB e-book storage organization District;
E: chopping rule is write the 9th~the 12nd byte of SNB e-book storage organization;
The the 13rd~the 16th byte by metadata quantity write SNB e-book storage organization;
The the 17th~the 20th byte by the meta-data region side-play amount write SNB e-book storage organization in content regions;
Quantity of documents is written to the 21st~the 24th byte of SNB e-book storage organization;
The the 25th~the 28th byte by the directory area side-play amount write SNB e-book storage organization in content regions;
Compression directory area is taken up room and writes the 29th~the 32nd byte of SNB e-book storage organization;
The the 33rd~the 36th byte by the uncompressed content side-play amount write SNB e-book storage organization in content regions;
The the 37th~the 40th byte by the compressed content side-play amount write SNB e-book storage organization in content regions;
The the 41st~the 44th byte by the additional information region side-play amount write SNB e-book storage organization in content regions;
The content-control district of this structure SNB e-book storage organization;
F: start to write successively the metadata information of book from 45 bytes of SNB e-book storage organization, directory area information, Uncompressed content information, compressed content information and additional content information;This step constructs the interior of SNB e-book storage organization Hold district.
The read method of a kind of described SNB e-book storage organization, comprises the following steps:
A) resolve the header file district of SNB e-book storage organization, judge SNB electronics according to the numerical value of the 1st~the 4th byte Whether book storage organization is encrypted, and four byte datas read are converted to character, if the character after changing is E, and should SNB file have employed encryption method otherwise this SNB file content and do not encrypts;Numerical value according to the 5th~the 8th byte judges The compression algorithm of SNB e-book storage organization, if by read four byte conversion be this character of character be B; use BZIP2 compression algorithm, if 0 have employed GZIP compression algorithm;
B) control zone of SNB e-book storage organization is resolved;
Chopping rule is obtained by the numerical value of the 9th~the 12nd byte storage;
Metadata quantity is obtained by the numerical value of the 13rd~the 16th byte storage;
The meta-data region side-play amount in content regions is obtained by the numerical value of the 17th~the 20th byte storage;
Quantity of documents is obtained by the numerical value of the 21st~the 24th byte storage;
The directory area side-play amount in content regions is obtained by the numerical value of the 25th~the 28th byte storage;
Obtained compression directory area by the numerical value of the 29th~the 32nd byte storage to take up room;
The uncompressed content side-play amount in content regions is obtained by the numerical value of the 33rd~the 36th byte storage;
The compressed content side-play amount in content regions is obtained by the numerical value of the 37th~the 40th byte storage;
The additional information region side-play amount in content regions is obtained by the numerical value of the 41st~the 44th byte storage;
C) metadata is resolved, in the 17th~the 20th byte being stored in content-control district that takes up room of metadata, in obtaining Hold the numerical value O of control zone the 17th~the 20th byte, then from the 45th byte~45+O byte be meta-data region;Meta-data region Form is length+content, first obtains the 1st~the 4th byte of meta-data region, then according to the numerical values recited of these 4 bytes Obtain the content of metadata, repeat this step and obtain multiple metadata;
D) resolving directory area, the directory area side-play amount in content regions is stored in the 25th~the 28th byte in content-control district, Obtain the numerical value P of content-control district the 25th~the 28th byte, then from 45+O byte~45+O+P byte be directory area;
If directory area size and compression directory area cause not of uniform size, come according to the compression algorithm of the 5th~the 8th byte storage Decompress directory area.
E) content regions is resolved;
Resolve uncompressed content regions, obtain the numerical value Q of content-control district the 33rd~the 36th byte, then 45+O+P byte~ 45+O+P+Q byte is uncompressed content regions, reads this part and obtains uncompressed content, then according to the 9th~the 12nd The chopping rule of byte storage splits into multiple chapters and sections;
Resolve compressed content district, obtain the numerical value R of content-control district the 37th~the 40th byte, then 45+O+P+Q byte~ 45+O+P+Q+R byte is compressed content district, finds out corresponding decompression according to the compression algorithm code name of header file storage Algorithm decompresses the contents of the section;
Resolve additional information region, obtain the numerical value S of content-control district the 41st~the 44th byte, 45+O+P+Q+R byte~ 45+O+P+Q+R+S byte is additional information region;Obtain encryption method, key length that this partial bytes is recorded;With And the section content of the section sequence number deciphering correspondence of encryption, it is split as chapters and sections according to chopping rule.
Above by detailed description of the invention and embodiment, the present invention is described in detail, but these have not been constituted this The restriction of invention.Without departing from the principles of the present invention, those skilled in the art it may also be made that many deformation and changes Entering, these also should be regarded as protection scope of the present invention.

Claims (7)

1. a SNB e-book storage organization, is characterized in that:
Described SNB e-book storage organization is divided into header file district, content-control district and content regions;
Header file district accounts for 8 bytes for storing whether e-book encrypts sign position and compression method generation information, header file Whether the 1st~the 4th byte storage in district encrypts sign position, and the compression that the 5th~the 8th byte storage in header file district uses is calculated Method code name;
Content-control district accounts for 36 bytes for storing herein below:
A. chopping rule: describe the byte quantity of each segmentation by 4 bytes;
B. metadata quantity: describe the quantity of storage metadata group by 4 bytes;
C. meta-data region is in the side-play amount of content regions: this side-play amount is integer number, stores by 4 bytes, this tables of data Bright metadata occupies the byte number that content regions starts, and metadata refers to the feature description character string of SNB, and this part is used for Expand the function of SNB;
D. quantity of documents: describe by 4 bytes and store quantity of documents in the sub-level catalogue that e-schoolbag contains;
E. directory area is in the side-play amount of content regions: be that integer number takies 4 bytes, in the bright directory information of this tables of data takies Hold the byte number behind meta-data region in district;F. compression directory area takes up room: after describing directory area compression by 4 bytes Byte quantity;
The most uncompressed content is in the side-play amount of content regions: being that integer number takies 4 bytes, these data show uncompressed content Take the byte number behind directory area in content regions;
H. compressed content is in the side-play amount of content regions: being that integer number takies 4 bytes, these data show that compressed content takies Byte number behind uncompressed content regions in content regions;
I. additional information region is in the side-play amount of content regions: being that integer number takies 4 bytes, these data show that additional information accounts for With the byte number behind compressed content district in content regions;
Content regions: the content of storage e-book, at least includes herein below:
Book.snbf, the summary info of storage e-book, summary info comprises the coding of book, front cover, language, distribution Business, producer, establishment time;
Toc.snbf, the special topic division of storage e-book, the information of storage comprises the name of special topic, the chapter that describes and comprise Joint list;
Toc_content.snbf, the Chapter List information of storage e-book, Chapter List information spinner volume information to be comprised, Section name and Chapter List;
Chapter.snbc, the content of storage one chapters and sections of e-book.
2. SNB e-book storage organization as claimed in claim 1, is characterized in that: described additional information is SNB electronics The control information of book storage organization, encryption method, encryption key and the encryption used including at least e-book storage organization The section beginning in content regions, the side-play amount of end.
3. SNB e-book storage organization as claimed in claim 1, is characterized in that: described SNB e-book storage organization The compression algorithm used is BZIP2 compression algorithm or GZIP compression algorithm.
4. SNB e-book storage organization as claimed in claim 1, is characterized in that: described uncompressed content is e-book Free chapters and sections.
5. SNB e-book storage organization as claimed in claim 1, is characterized in that: described compressed content is e-book Charge chapters and sections.
6. a wiring method for SNB e-book storage organization as claimed in claim 1, is characterized in that, including following step Rapid:
1) e-book logical file is created: summary file, index file and content file;
Summary file: at least include: version, author, language, title, publisher, making side's information;
Index file: the e-book logical partitioning rule that storage is preset;
Content file: the content of storage one chapters and sections of e-book;
2) write SNB e-book storage organization;
A: obtain the content information of e-book;
B: obtain the index information of e-book;
C: content information and the index information of book are divided into different sections according to fixing byte length;
D: will whether encrypt the 1st~the 4th byte indicating position write SNB e-book storage organization;
The code name of compression algorithm is write the 5th~the 8th byte of SNB e-book storage organization;
E: chopping rule is write the 9th~the 12nd byte of SNB e-book storage organization;
The the 13rd~the 16th byte by metadata quantity write SNB e-book storage organization;
The the 17th~the 20th byte by the meta-data region side-play amount write SNB e-book storage organization in content regions;
Quantity of documents is written to the 21st~the 24th byte of SNB e-book storage organization;
The the 25th~the 28th byte by the directory area side-play amount write SNB e-book storage organization in content regions;
Compression directory area is taken up room and writes the 29th~the 32nd byte of SNB e-book storage organization;
The the 33rd~the 36th byte by the uncompressed content side-play amount write SNB e-book storage organization in content regions;
The the 37th~the 40th byte by the compressed content side-play amount write SNB e-book storage organization in content regions;
The the 41st~the 44th byte by the additional information region side-play amount write SNB e-book storage organization in content regions;
F: start to write successively the metadata information of e-book, catalogue from the 45th byte of SNB e-book storage organization District's information, uncompressed content information, compressed content information and additional content information.
7. a read method for SNB e-book storage organization as claimed in claim 1, is characterized in that, including following step Rapid:
A) resolve the header file district of SNB e-book storage organization, judge SNB e-book according to the numerical value of the 1st~the 4th byte Whether storage content encrypts, and judges the compression algorithm of SNB e-book storage content according to the numerical value of the 5th~the 8th byte;
B) control zone of SNB e-book storage organization is resolved;
Chopping rule is obtained by the numerical value of the 9th~the 12nd byte storage;
Metadata quantity is obtained by the numerical value of the 13rd~the 16th byte storage;
The position in content regions, the meta-data region is obtained by the numerical value of the 17th~the 20th byte storage;
Quantity of documents is obtained by the numerical value of the 21st~the 24th byte storage;
The position in content regions, the directory area is obtained by the numerical value of the 25th~the 28th byte storage;
Taking up room of compression directory area is obtained by the numerical value of the 29th~the 32nd byte storage;
The uncompressed content position in content regions is obtained by the numerical value of the 33rd~the 36th byte storage;
The compressed content position in content regions is obtained by the numerical value of the 37th~the 40th byte storage;
The position in content regions, the additional information region is obtained by the numerical value of the 41st~the 44th byte storage;
C) resolve metadata, obtain the numerical value O of content-control district the 17th~the 20th byte, then from the 45th byte~45+O Byte is meta-data region;The form of meta-data region is length+content, first obtains the 1st~the 4th byte of meta-data region, so Numerical values recited according to these 4 bytes obtains the content of metadata afterwards, repeats this step and obtains multiple metadata;
D) resolve directory area, obtain the numerical value P of content-control district the 25th~the 28th byte, then from 45+O byte~the 45+O+P byte is directory area;Take up room inconsistent if directory area takes up room and compresses directory area, according to the 5th~ The compression algorithm code name of the 8th byte storage calls the compression algorithm of response to decompress directory area;
E) content regions is resolved;
Resolve uncompressed content regions, obtain the numerical value Q of content-control district the 33rd~the 36th byte, then 45+O+P byte~ 45+O+P+Q byte is uncompressed content regions, reads this part and obtains uncompressed content, then according to the 9th~the 12nd The chopping rule of byte storage splits into multiple chapters and sections;
Resolve compressed content district, obtain the numerical value R of content-control district the 37th~the 40th byte, then 45+O+P+Q byte~ 45+O+P+Q+R byte is compressed content district, finds out corresponding decompression according to the compression algorithm code name of header file storage Algorithm decompresses the contents of the section;
Resolve additional information region, obtain the numerical value S of content-control district the 41st~the 44th byte, 45+O+P+Q+R byte~ 45+O+P+Q+R+S byte is additional information region;Obtain this partial bytes record encryption method, key length and The beginning of encrypted section, the side-play amount of end, be split as chapters and sections according to chopping rule.
CN201510230595.4A 2015-05-07 2015-05-07 SNB e-book storage organization and wiring method thereof and read method Withdrawn CN106202119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510230595.4A CN106202119A (en) 2015-05-07 2015-05-07 SNB e-book storage organization and wiring method thereof and read method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510230595.4A CN106202119A (en) 2015-05-07 2015-05-07 SNB e-book storage organization and wiring method thereof and read method

Publications (1)

Publication Number Publication Date
CN106202119A true CN106202119A (en) 2016-12-07

Family

ID=57459362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510230595.4A Withdrawn CN106202119A (en) 2015-05-07 2015-05-07 SNB e-book storage organization and wiring method thereof and read method

Country Status (1)

Country Link
CN (1) CN106202119A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220361A (en) * 2017-06-07 2017-09-29 北京策腾教育科技有限公司 The tissue and storage method of various resources in a kind of English on-line study
CN109074124A (en) * 2017-01-26 2018-12-21 华为技术有限公司 The method and mobile device of data processing
CN111488727A (en) * 2020-03-24 2020-08-04 南阳柯丽尔科技有限公司 Word file parsing method, word file parsing apparatus, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000023926A1 (en) * 1998-10-16 2000-04-27 Softbook Press, Inc. Method and apparatus for electronically distributing and viewing digital contents
CN101739391A (en) * 2009-12-16 2010-06-16 彭扬 Method for generating electronic book with binary file format and electronic book generated by same
CN102004762A (en) * 2010-11-05 2011-04-06 中国电信股份有限公司 E-book generating method and device as well as e-book downloading method and device
US20130046765A1 (en) * 2011-08-16 2013-02-21 Google Inc. Searching encrypted electronic books

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000023926A1 (en) * 1998-10-16 2000-04-27 Softbook Press, Inc. Method and apparatus for electronically distributing and viewing digital contents
CN101739391A (en) * 2009-12-16 2010-06-16 彭扬 Method for generating electronic book with binary file format and electronic book generated by same
CN102004762A (en) * 2010-11-05 2011-04-06 中国电信股份有限公司 E-book generating method and device as well as e-book downloading method and device
US20130046765A1 (en) * 2011-08-16 2013-02-21 Google Inc. Searching encrypted electronic books

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109074124A (en) * 2017-01-26 2018-12-21 华为技术有限公司 The method and mobile device of data processing
CN109074124B (en) * 2017-01-26 2021-05-14 华为技术有限公司 Data processing method and mobile equipment
US11567725B2 (en) 2017-01-26 2023-01-31 Huawei Technologies Co., Ltd. Data processing method and mobile device
CN107220361A (en) * 2017-06-07 2017-09-29 北京策腾教育科技有限公司 The tissue and storage method of various resources in a kind of English on-line study
CN111488727A (en) * 2020-03-24 2020-08-04 南阳柯丽尔科技有限公司 Word file parsing method, word file parsing apparatus, and computer-readable storage medium
CN111488727B (en) * 2020-03-24 2023-09-19 南阳柯丽尔科技有限公司 Word file parsing method, word file parsing apparatus, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US6636773B1 (en) Semiconductor memory card, apparatus for recording data onto the semiconductor memory card, and apparatus for reproducing data of the semiconductor memory card
CN101609707B (en) Information processing apparatus and information processing method
EP1734451A1 (en) File name generation apparatus
SG175372A1 (en) A data file having more than one mode of operation
JP5831298B2 (en) Program, information processing apparatus, and index generation method
JPS6115243A (en) Self-diffusion memory file
JP2007188501A (en) Method of creating symbolic link capable of being compatible with file system, and method and apparatus for accessing file or directory by using symbolic link
US20060253484A1 (en) Flash memory directory virtualization
US20150193382A1 (en) Word Processor Data Organization
CN107111726B (en) File encryption support for FAT file system
CN104462147A (en) Storage method for document
CN106202119A (en) SNB e-book storage organization and wiring method thereof and read method
US20050175317A1 (en) Method of converting file system format and apparatus thereof
US20150324414A1 (en) Information processing device and information processing method
CN105843554B (en) The method and its system of Data Migration based on object storage
CN102609531B (en) Method for pegging files according to keywords
US7921140B2 (en) Apparatus and method for browsing contents
CN101739391A (en) Method for generating electronic book with binary file format and electronic book generated by same
CN110297781B (en) Method for recovering deleted data in APFS (advanced File System) based on copy-on-write
CN101620632B (en) File operation apparatus
EP2856359B1 (en) Systems and methods for storing data and eliminating redundancy
CN102473175B (en) Compression of XML data
KR100965709B1 (en) Mechanism for applying transforms to multi-part files
KR20050006975A (en) Method for Controlling Content Files Using Identification
CN101527152A (en) Method for realizing editable CD file data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20161207