public class BCFVersion extends Object
Modifier and Type | Field | 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 | Description |
---|---|
BCFVersion(int majorVersion,
int minorVersion) |
Modifier and Type | Method | Description |
---|---|---|
int |
getMajorVersion() |
|
int |
getMinorVersion() |
|
static BCFVersion |
readBCFVersion(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.
|
String |
toString() |
|
void |
write(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(InputStream stream) throws IOException
stream
- IOException
public void write(OutputStream out) throws IOException
out
- IOException