@Test public void deserializeInvalidReturnsNull() throws IOException, UnrecognizedMessageTypeException { InputStream input = new ByteArrayInputStream(new byte[]{0,1,2,3,4}); assertThat(BinaryFormatter.deserialize(input), nullValue()); }
public static VehicleMessage deserialize(InputStream data) throws UnrecognizedMessageTypeException { return BinaryDeserializer.deserialize(data); }
BinaryFormatter { public static VehicleMessage deserialize(InputStream data) throws UnrecognizedMessageTypeException { return BinaryDeserializer.deserialize(data); } }
BinaryFormatter { public static VehicleMessage deserialize(InputStream data) throws UnrecognizedMessageTypeException { return BinaryDeserializer.deserialize(data); }  }
BinaryFormatter { public static VehicleMessage deserialize(InputStream data) throws UnrecognizedMessageTypeException { return BinaryDeserializer.deserialize(data); }  static VehicleMessage deserialize(InputStream data); static byte[] serialize(VehicleMessage message); static MessageLite preSerialize(VehicleMessage message); }
BinaryFormatter { public static VehicleMessage deserialize(InputStream data) throws UnrecognizedMessageTypeException { return BinaryDeserializer.deserialize(data); }  static VehicleMessage deserialize(InputStream data); static byte[] serialize(VehicleMessage message); static MessageLite preSerialize(VehicleMessage message);  }