Package org.apache.uima.cas.impl
Class CommonSerDes.Header
- java.lang.Object
-
- org.apache.uima.cas.impl.CommonSerDes.Header
-
- Enclosing class:
- CommonSerDes
public static class CommonSerDes.Header extends java.lang.ObjectHEADERS Serialization versioning There are 1 or 2 words used for versioning. Compressed formats and plain formats with bit xx on in first word use 2nd word First word: - bit in 0x01 position: on for binary non-delta (redundant) - bit in 0x02 position: on means delta, off - not delta - bit in 0x04 position: on means compressed, off means plain binary - bit in 0x08 position: on means type system + indexes def included - bit in 0x10 position: on means type system (only) included - bits 0xF0 reserved - byte in 0xFF 00 position: a sequential version number, incrementing (starting w/ 0) Form 4: 0 = original (UIMA v2) 1 = fixes to original found during V3 development 2 = V3 - byte in 0xFF 00 00 position: special flags with some shared meaning -- bit 0x01 00 00: V3 formats Second word: - bit in 0x01 position: on means form6, off = form 4
-
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonSerDes.Headerdelta()CommonSerDes.Headerdelta(boolean v2)CommonSerDes.Headerform4()CommonSerDes.Headerform6()bytegetSeqVersionNbr()booleanisCompressed()booleanisDelta()booleanisForm4()booleanisForm6()booleanisTypeSystemIncluded()booleanisTypeSystemIndexDefIncluded()booleanisV3()CommonSerDes.HeaderseqVer(int v2)CommonSerDes.HeadertypeSystemIncluded(boolean f)CommonSerDes.HeadertypeSystemIndexDefIncluded(boolean f)CommonSerDes.Headerv3()voidwrite(java.io.DataOutputStream dos)
-
-
-
Method Detail
-
delta
public CommonSerDes.Header delta()
-
delta
public CommonSerDes.Header delta(boolean v2)
-
form4
public CommonSerDes.Header form4()
-
form6
public CommonSerDes.Header form6()
-
typeSystemIncluded
public CommonSerDes.Header typeSystemIncluded(boolean f)
-
typeSystemIndexDefIncluded
public CommonSerDes.Header typeSystemIndexDefIncluded(boolean f)
-
seqVer
public CommonSerDes.Header seqVer(int v2)
-
v3
public CommonSerDes.Header v3()
-
write
public void write(java.io.DataOutputStream dos) throws java.io.IOException- Throws:
java.io.IOException
-
isDelta
public boolean isDelta()
-
isCompressed
public boolean isCompressed()
-
isForm4
public boolean isForm4()
-
isForm6
public boolean isForm6()
-
isTypeSystemIndexDefIncluded
public boolean isTypeSystemIndexDefIncluded()
-
isTypeSystemIncluded
public boolean isTypeSystemIncluded()
-
getSeqVersionNbr
public byte getSeqVersionNbr()
-
isV3
public boolean isV3()
-
-