public class BCFVersion
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
MAGIC_HEADER_START
BCF2 begins with the MAGIC info BCF_M_m where M is the major version (currently 2)
and m is the minor version, currently 1
|
| Constructor and Description |
|---|
BCFVersion(int majorVersion,
int minorVersion) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMajorVersion() |
int |
getMinorVersion() |
static BCFVersion |
readBCFVersion(java.io.InputStream stream)
Return a new BCFVersion object describing the major and minor version of the BCF file in stream
Note that stream must be at the very start of the file.
|
java.lang.String |
toString() |
void |
write(java.io.OutputStream out)
Write out the BCF magic information indicating this is a BCF file with corresponding major and minor versions
|
public static final byte[] MAGIC_HEADER_START
public int getMajorVersion()
public int getMinorVersion()
public static BCFVersion readBCFVersion(java.io.InputStream stream) throws java.io.IOException
stream - java.io.IOExceptionpublic void write(java.io.OutputStream out)
throws java.io.IOException
out - java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object