EncoderUtils { public static byte[] encodeByteArr(FloatCodecs inputCodec, float[] inputData, int param){ byte[] prepend = new OptionParser(inputCodec.getCodecId(), inputData.length, param).getHeader(); byte[] outputArr = inputCodec.encode(inputData,param); return joinArrays(prepend, outputArr); }  static Group[] generateGroupList(StructureDataInterface structureDataInterface); static List<BioAssemblyData> generateBioassemblies(StructureDataInterface structureDataInterface); static Entity[] generateEntityList(StructureDataInterface structureDataInterface); static String getTypeFromChainId(StructureDataInterface structureDataInterface, int chainInd); static byte[] encodeByteArr(FloatCodecs inputCodec, float[] inputData, int param); static byte[] encodeByteArr(IntCodecs inputCodec, int[] inputData, int param); static byte[] encodeByteArr(CharCodecs inputCodec, char[] inputData, int param); static byte[] encodeByteArr(StringCodecs inputCodec, String[] inputData, int param); static void transferBioassembly(StructureDataInterface structureDataInterface,
			AdapterToStructureData adapterToStructureData); static final int NULL_PARAM; }
@Test public void testEmptyArrs() { for (FloatCodecs inputCodec : FloatCodecs.values()) { testOutput(EncoderUtils.encodeByteArr(inputCodec, new float[]{}, 0), inputCodec.getCodecId()); } for (CharCodecs inputCodec : CharCodecs.values()) { testOutput(EncoderUtils.encodeByteArr(inputCodec, new char[]{}, 0), inputCodec.getCodecId()); } for (IntCodecs inputCodec : IntCodecs.values()) { testOutput(EncoderUtils.encodeByteArr(inputCodec, new int[]{}, 0), inputCodec.getCodecId()); } for (StringCodecs inputCodec : StringCodecs.values()) { testOutput(EncoderUtils.encodeByteArr(inputCodec, new String[]{}, 0), inputCodec.getCodecId()); } }