C# Class Studyzy.LearnEnglishBySubtitle.EngDict.LingoesLd2

Show file Open project: studyzy/LearnEnglishBySubtitle

Public Methods

Method Description
LingoesLd2 ( ) : System
Parse ( string ld2File ) : IList

Private Methods

Method Description
BytesToStream ( byte bytes ) : Stream
CopyStream ( Stream stream, long offset, int length ) : Stream
Decompress ( FileStream data, long offset, long length ) : List
Extract ( byte dataRawBytes, int offsetDefs, int offsetXml ) : IList

解析解压后的数据,返回词汇列表

GetIdxData ( byte dataRawBytes, int position, int wordIdxData ) : void

读取二进制数据中的单词Index信息,放入单词IndexData中

Inflate ( FileStream dataRawBytes, long startP, List deflateStreams ) : byte[]
IsChinese ( string str ) : bool
ReadDefinitionData ( byte inflatedBytes, int offsetWords, int offsetXml, int dataLen, Encoding wordStringDecoder, Encoding xmlStringDecoder, int i ) : InternalWord

读取一个词汇的词和解释

ReadDictionary ( FileStream fs, int offsetWithIndex ) : IList
RemoveHtmlTag ( string html ) : string
StreamToBytes ( Stream stream, int length ) : byte[]

Method Details

LingoesLd2() public method

public LingoesLd2 ( ) : System
return System

Parse() public method

public Parse ( string ld2File ) : IList
ld2File string
return IList