Class BCF2Encoder
java.lang.Object
htsjdk.variant.variantcontext.writer.BCF2Encoder
See #BCFWriter for documentation on this classes role in encoding BCF2 files
- Since:
- 06/12
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BCF2TypeTotally generic encoder that examines o, determines the best way to encode it, and encodes it This method is incredibly slow, but it's only used for UnitTests so it doesn't matterfinal voidencodeRawBytes(int value, BCF2Type type) final voidencodeRawChar(byte c) final voidencodeRawFloat(double value) final voidencodeRawInt(int value, BCF2Type type) final voidfinal voidencodeRawMissingValues(int size, BCF2Type type) voidencodeRawString(String s, int sizeToWrite) final <T> voidencodeRawValue(T value, BCF2Type type) final <T> voidencodeRawValues(Collection<T> v, BCF2Type type) final voidencodeType(int size, BCF2Type type) final voidencodeTyped(Object value, BCF2Type type) final voidencodeTyped(List<? extends Object> v, BCF2Type type) final voidencodeTypedFloat(double d) final voidencodeTypedInt(int v) final voidencodeTypedInt(int v, BCF2Type type) final voidencodeTypedMissing(BCF2Type type) final voidencodeTypedString(byte[] s) final voidbyte[]
-
Field Details
-
WRITE_BUFFER_INITIAL_SIZE
public static final int WRITE_BUFFER_INITIAL_SIZE- See Also:
-
-
Constructor Details
-
BCF2Encoder
public BCF2Encoder()
-
-
Method Details
-
getRecordBytes
public byte[] getRecordBytes() -
encodeTypedMissing
- Throws:
IOException
-
encodeTyped
- Throws:
IOException
-
encodeTypedInt
- Throws:
IOException
-
encodeTypedInt
- Throws:
IOException
-
encodeTypedString
- Throws:
IOException
-
encodeTypedString
- Throws:
IOException
-
encodeTypedFloat
- Throws:
IOException
-
encodeTyped
- Throws:
IOException
-
encodeRawValues
- Throws:
IOException
-
encodeRawValue
- Throws:
IOException
-
encodeRawMissingValue
- Throws:
IOException
-
encodeRawMissingValues
- Throws:
IOException
-
encodeRawChar
- Throws:
IOException
-
encodeRawFloat
- Throws:
IOException
-
encodeType
- Throws:
IOException
-
encodeRawInt
- Throws:
IOException
-
encodeRawBytes
- Throws:
IOException
-
encodeRawString
- Throws:
IOException
-
encode
Totally generic encoder that examines o, determines the best way to encode it, and encodes it This method is incredibly slow, but it's only used for UnitTests so it doesn't matter- Parameters:
o-- Returns:
- Throws:
IOException
-