Свойство | Тип | Описание | |
---|---|---|---|
FOOTER_MAGIC | int |
Метод | Описание | |
---|---|---|
CheckEOF ( |
Checks that the stream is positioned at the end, and throws exception if it is not.
|
|
CheckFooter ( Lucene.Net.Store.ChecksumIndexInput @in ) : long |
Validates the codec footer previously written by #writeFooter.
|
|
CheckHeader ( |
Reads and validates a header previously written with #writeHeader(DataOutput, String, int). When reading a file, supply the expected
|
|
CheckHeaderNoMagic ( |
Like {@link #checkHeader(DataInput,String,int,int)} except this version assumes the first int has already been read and validated from the input.
|
|
ChecksumEntireFile ( |
Clones the provided input, reads all bytes from the file, and calls #checkFooter Note that this method may be slow, as it must process the entire file. If you just need to extract the checksum value, call #retrieveChecksum.
|
|
FooterLength ( ) : int |
Computes the length of a codec footer.
|
|
HeaderLength ( string codec ) : int |
Computes the length of a codec header.
|
|
RetrieveChecksum ( |
Returns (but does not validate) the checksum previously written by #checkFooter.
|
|
WriteFooter ( Lucene.Net.Store.IndexOutput @out ) : void |
Writes a codec footer, which records both a checksum algorithm ID and a checksum. this footer can be parsed and validated with #checkFooter(ChecksumIndexInput) checkFooter(). CodecFooter --> Magic,AlgorithmID,Checksum
|
|
WriteHeader ( |
Writes a codec header, which records both a string to identify the file and a version number. this header can be parsed and validated with #checkHeader(DataInput, String, int, int) checkHeader(). CodecHeader --> Magic,CodecName,Version
Note that the length of a codec header depends only upon the name of the codec, so this length can be computed at any time with #headerLength(String).
|
Метод | Описание | |
---|---|---|
CodecUtil ( ) : Lucene.Net.Store | ||
ValidateFooter ( |
public static CheckEOF ( |
||
@in | ||
Результат | void |
public static CheckFooter ( Lucene.Net.Store.ChecksumIndexInput @in ) : long | ||
@in | Lucene.Net.Store.ChecksumIndexInput | |
Результат | long |
public static CheckHeader ( |
||
@in | ||
codec | string | The expected codec name. |
minVersion | int | The minimum supported expected version number. |
maxVersion | int | The maximum supported expected version number. |
Результат | int |
public static CheckHeaderNoMagic ( |
||
@in | ||
codec | string | |
minVersion | int | |
maxVersion | int | |
Результат | int |
public static ChecksumEntireFile ( |
||
input | ||
Результат | long |
public static HeaderLength ( string codec ) : int | ||
codec | string | Codec name. |
Результат | int |
public static RetrieveChecksum ( |
||
@in | ||
Результат | long |
public static WriteFooter ( Lucene.Net.Store.IndexOutput @out ) : void | ||
@out | Lucene.Net.Store.IndexOutput | |
Результат | void |
public static WriteHeader ( |
||
@out | ||
codec | string | String to identify this file. It should be simple ASCII, /// less than 128 characters in length. |
version | int | Version number |
Результат | void |