List of usage examples for org.apache.lucene.store DataInput skipBytes
public void skipBytes(final long numBytes) throws IOException
numBytes bytes. From source file:com.lucure.core.codec.CompressingStoredFieldsReader.java
License:Apache License
private static void skipField(DataInput in, int bits, FieldVisibility cv) throws IOException { switch (bits & TYPE_MASK) { case BYTE_ARR: case STRING:/*from w w w.java2 s . c o m*/ final int length = in.readVInt(); in.skipBytes(length); break; case NUMERIC_INT: case NUMERIC_FLOAT: in.readInt(); break; case NUMERIC_LONG: case NUMERIC_DOUBLE: in.readLong(); break; default: throw new AssertionError("Unknown type flag: " + Integer.toHexString(bits)); } }