org.apache.lucene.util
Class CodecUtil

java.lang.Object
  extended by org.apache.lucene.util.CodecUtil

public final class CodecUtil
extends Object

WARNING: This API is experimental and might change in incompatible ways in the next release.

Method Summary
static int checkHeader(DataInput in, String codec, int minVersion, int maxVersion)
           
static int headerLength(String codec)
           
static DataOutput writeHeader(DataOutput out, String codec, int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeHeader

public static DataOutput writeHeader(DataOutput out,
                                     String codec,
                                     int version)
                              throws IOException
Throws:
IOException

headerLength

public static int headerLength(String codec)

checkHeader

public static int checkHeader(DataInput in,
                              String codec,
                              int minVersion,
                              int maxVersion)
                       throws IOException
Throws:
IOException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.