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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal BCF2Type
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 matterfinal void
encodeRawBytes
(int value, BCF2Type type) final void
encodeRawChar
(byte c) final void
encodeRawFloat
(double value) final void
encodeRawInt
(int value, BCF2Type type) final void
final void
encodeRawMissingValues
(int size, BCF2Type type) void
encodeRawString
(String s, int sizeToWrite) final <T> void
encodeRawValue
(T value, BCF2Type type) final <T> void
encodeRawValues
(Collection<T> v, BCF2Type type) final void
encodeType
(int size, BCF2Type type) final void
encodeTyped
(Object value, BCF2Type type) final void
encodeTyped
(List<? extends Object> v, BCF2Type type) final void
encodeTypedFloat
(double d) final void
encodeTypedInt
(int v) final void
encodeTypedInt
(int v, BCF2Type type) final void
encodeTypedMissing
(BCF2Type type) final void
encodeTypedString
(byte[] s) final void
byte[]
-
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
-